6 lines
131 B
Ruby
6 lines
131 B
Ruby
|
RailsAdmin.config do |config|
|
||
|
config.authenticate_with do
|
||
|
redirect_to '/' unless signed_in? && current_user.admin?
|
||
|
end
|
||
|
end
|