Sha256: d687e3067274a361e3e5b5f79b4c00b74ed1b636f46dbfcec0213738468113f7

Contents?: true

Size: 992 Bytes

Versions: 39

Compression:

Stored size: 992 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 :cancan

  ## == 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

39 entries across 39 versions & 1 rubygems

Version Path
thecore-1.6.10 config/initializers/rails_admin.rb
thecore-1.6.9 config/initializers/rails_admin.rb
thecore-1.6.8 config/initializers/rails_admin.rb
thecore-1.6.7 config/initializers/rails_admin.rb
thecore-1.6.5 config/initializers/rails_admin.rb
thecore-1.6.4 config/initializers/rails_admin.rb
thecore-1.6.3 config/initializers/rails_admin.rb
thecore-1.6.2 config/initializers/rails_admin.rb
thecore-1.6.1 config/initializers/rails_admin.rb
thecore-1.6.0 config/initializers/rails_admin.rb
thecore-1.5.14 config/initializers/rails_admin.rb
thecore-1.5.13 config/initializers/rails_admin.rb
thecore-1.5.12 config/initializers/rails_admin.rb
thecore-1.5.10 config/initializers/rails_admin.rb
thecore-1.5.9 config/initializers/rails_admin.rb
thecore-1.5.8 config/initializers/rails_admin.rb
thecore-1.5.7 config/initializers/rails_admin.rb
thecore-1.5.6 config/initializers/rails_admin.rb
thecore-1.5.5 config/initializers/rails_admin.rb
thecore-1.5.4 config/initializers/rails_admin.rb