Sha256: 045a351e6af9efbfa462b7c0640345449715a15071685f4e8de9a7392efb5eef

Contents?: true

Size: 780 Bytes

Versions: 3

Compression:

Stored size: 780 Bytes

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

  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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
venomi-0.0.3 lib/debug/initializers/rails_admin.rb
venomi-0.0.2 lib/debug/initializers/rails_admin.rb
venomi-0.0.1 lib/debug/initializers/rails_admin.rb