diff --git a/config/initializers/active_admin.rb b/config/initializers/active_admin.rb index 877101fd9..fc86dff40 100644 --- a/config/initializers/active_admin.rb +++ b/config/initializers/active_admin.rb @@ -78,7 +78,8 @@ ActiveAdmin.setup do |config| # To load a javascript file: # config.register_javascript 'my_javascript.js' - config.logout_link_path = :destroy_user_session_path + config.logout_link_path = :destroy_user_session_path + config.logout_link_method = :delete end # Block admin access to non-admin-users.