Redirect to main_app_root_path

This commit is contained in:
Erik Michaels-Ober 2011-10-12 10:52:59 -07:00
parent 8475cd1926
commit 979ebb76fd
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
RailsAdmin.config do |config|
config.authenticate_with do
redirect_to '/' unless signed_in? && current_user.admin?
redirect_to main_app_root_path unless signed_in? && current_user.admin?
end
end