adopt-a-hydrant/config/initializers/rails_admin.rb

6 lines
146 B
Ruby
Raw Normal View History

RailsAdmin.config do |config|
config.authenticate_with do
2011-10-12 17:52:59 +00:00
redirect_to main_app_root_path unless signed_in? && current_user.admin?
end
end