Sha256: 66a7bb991036a372622bc41e44253a3df2c77bc1f16b3609e29c9609425e8f1d
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
module MegaBar class ModelsController < ApplicationController include MegaBarConcern # attr_accessor :edit_model_display before_action ->{ myinit 1 }, only: [:index, :show, :edit, :new] #before_action :app_init, only: [:index, :show, :edit, :new] private # Never trust parameters from the scary internet, only allow the white list through. def _params # params.require(:model).permit(:model:classname, :schema, :tablename, :name) params.require(:model).permit(:classname, :schema, :tablename, :name, :default_sort_field, :index_model_display, :show_model_display, :new_model_display, :edit_model_display) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.0.1 | app/controllers/mega_bar/models_controller.rb |