Module: ActiveAdmin::Devise::Controller

Extended by:
ActiveSupport::Concern
Included in:
PasswordsController, SessionsController
Defined in:
lib/active_admin/devise.rb

Instance Method Summary collapse

Instance Method Details

#root_pathObject

Redirect to the default namespace on logout



36
37
38
39
40
41
42
# File 'lib/active_admin/devise.rb', line 36

def root_path
  if ActiveAdmin.application.default_namespace
    "/#{ActiveAdmin.application.default_namespace}"
  else
    "/"
  end
end