Sha256: 6c07fe2e33fe7e707208128bfc1e9ac737f8e3a17f8fcf5e567a460b483cf331
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'rails_admin' 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 config.model "ActiveStorage::Blob" do visible false end config.model "ActiveStorage::Attachment" do visible false end ## == 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thecore_ui_rails_admin-2.1.5 | config/initializers/rails_admin.rb |