Sha256: a9a5fa163a4578f0e36b154600c1d0cd87f4dec75d575b18e8a6606dfd99b32a
Contents?: true
Size: 1.02 KB
Versions: 18
Compression:
Stored size: 1.02 KB
Contents
RailsAdmin.config do |config| config.authorize_with do if ENV["ADMIN_USER"] && ENV["ADMIN_PASSWORD"] authenticate_or_request_with_http_basic('Site Message') do |username, password| username == ENV["ADMIN_USER"] && password == ENV["ADMIN_PASSWORD"] end end end ### 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
18 entries across 18 versions & 2 rubygems