only load rails admin in production mode
This commit is contained in:
parent
66e9423dc9
commit
28f8db51e7
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# RailsAdmin config file. Generated on March 24, 2012 15:34
|
||||
# See github.com/sferik/rails_admin for more informations
|
||||
|
||||
unless Rails.env.production?
|
||||
RailsAdmin.config do |config|
|
||||
config.authorize_with do
|
||||
redirect_to main_app.root_path unless current_user.try(:admin?)
|
||||
|
|
@ -1141,3 +1141,4 @@ if defined?(WillPaginate)
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue