2011-10-10 22:07:32 +00:00
|
|
|
RailsAdmin.config do |config|
|
|
|
|
config.authenticate_with do
|
2012-06-18 17:49:28 +00:00
|
|
|
redirect_to(main_app.root_path, flash: {warning: "You must be signed-in as an administrator to access that page"}) unless signed_in? && current_user.admin?
|
2011-10-10 22:07:32 +00:00
|
|
|
end
|
|
|
|
end
|