Sha256: 6f5bc8fa2857abc852bb89cab1a037d1f9442b2460f5d5bcfa8ce261796a3f67
Contents?: true
Size: 1005 Bytes
Versions: 3
Compression:
Stored size: 1005 Bytes
Contents
require 'rails_admin' require "thecore_actions" include TheCoreActions RailsAdmin.config do |config| # config.main_app_name = Proc.new { |controller| # [(Settings.app_name rescue (ENV["APP_NAME"] || "TheCore App")), "#{controller.params[:action].try(:titleize)} (#{Time.zone.now.to_s(:time)})"] # } ### Popular gems integration ## == Devise == config.authenticate_with do warden.authenticate! scope: :user end config.current_user_method(&:current_user) ## == Cancan == config.authorize_with :cancancan ## == PaperTrail == # config.audit_with :paper_trail, 'User', 'PaperTrail::Version' # PaperTrail >= 3.0.0 ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration config.label_methods.unshift(:display_name) config.actions do # show_in_app dashboard # mandatory index # mandatory new export bulk_delete show edit delete toggle end end # require "thecore_rails_admin_main_controller_concern"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thecore-1.7.7 | config/initializers/rails_admin.rb |
thecore-1.7.5 | config/initializers/rails_admin.rb |
thecore-1.7.3 | config/initializers/rails_admin.rb |