Module: ActiveAdmin::Devise

Defined in:
lib/active_admin/devise.rb

Defined Under Namespace

Modules: Controller Classes: ConfirmationsController, PasswordsController, RegistrationsController, SessionsController, UnlocksController

Class Method Summary collapse

Class Method Details

.configObject


8
9
10
11
12
13
14
15
# File 'lib/active_admin/devise.rb', line 8

def self.config
  {
    path: ActiveAdmin.application.default_namespace || "/",
    controllers: ActiveAdmin::Devise.controllers,
    path_names: { sign_in: 'login', sign_out: "logout" },
    sign_out_via: [*::Devise.sign_out_via, ActiveAdmin.application.logout_link_method].uniq
  }
end

.controllersObject


17
18
19
20
21
22
23
24
25
# File 'lib/active_admin/devise.rb', line 17

def self.controllers
  {
    sessions: "active_admin/devise/sessions",
    passwords: "active_admin/devise/passwords",
    unlocks: "active_admin/devise/unlocks",
    registrations: "active_admin/devise/registrations",
    confirmations: "active_admin/devise/confirmations"
  }
end

.controllers_for_filtersObject


73
74
75
76
77
# File 'lib/active_admin/devise.rb', line 73

def self.controllers_for_filters
  [SessionsController, PasswordsController, UnlocksController,
    RegistrationsController, ConfirmationsController
  ]
end