Sha256: 25672c49ce73f683f11fc1ecd5738da937ff45830d4a0c234f383c134ddd8137
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
RailsAdmin.config do |config| ### Popular gems integration ## == Devise == # config.authenticate_with do # warden.authenticate! scope: :user # end # config.current_user_method(&:current_user) ## == Cancan == # config.authorize_with :cancan ## == Pundit == # config.authorize_with :pundit ## == PaperTrail == # config.audit_with :paper_trail, 'User', 'PaperTrail::Version' # PaperTrail >= 3.0.0 ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration ## == Gravatar integration == ## To disable Gravatar integration in Navigation Bar set to false # config.show_gravatar = true config.actions do dashboard # mandatory index # mandatory new export bulk_delete show edit delete show_in_app ## With an audit adapter, you can add: # history_index # history_show end ## == Authz Configuration == config.main_app_name = ["Authorization", "Admin"] config.included_models = ['Authz::ControllerAction', 'Authz::BusinessProcess', 'Authz::Role', 'Authz::ScopingRule'] config.model 'Authz::ControllerAction' do object_label_method { :to_s } list { exclude_fields :created_at, :updated_at } end config.model 'Authz::BusinessProcess' do list { exclude_fields :created_at, :updated_at } end config.model 'Authz::Role' do list { exclude_fields :created_at, :updated_at } end config.model 'Authz::ScopingRule' do object_label_method { :to_s } list { exclude_fields :created_at, :updated_at } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authz-0.0.1.alpha | config/initializers/rails_admin.rb |