Browse Source

oops admin auth

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
e2a56bfcf4
  1. 7
      config/initializers/rails_admin.rb

7
config/initializers/rails_admin.rb

@ -7,7 +7,12 @@ RailsAdmin.config do |config|
# require 'i18n'
# I18n.default_locale = :de
config.current_user_method { current_admin } # auto-generated
RailsAdmin.config do |config|
config.authenticate_with do
warden.authenticate! scope: :admin
end
config.current_user_method &:current_admin
end
# If you want to track changes on your models:
# config.audit_with :history, Admin

Loading…
Cancel
Save