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



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

def self.config
  {
    path: ActiveAdmin.application.default_namespace || "/",
    controllers: ActiveAdmin::Devise.controllers,
    path_names: { sign_in: "login", sign_out: "logout" }
  }
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



84
85
86
87
88
# File 'lib/active_admin/devise.rb', line 84

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