Module: ActiveAdmin::Devise

Defined in:
lib/active_admin/devise.rb

Defined Under Namespace

Modules: Controller Classes: PasswordsController, SessionsController

Class Method Summary collapse

Class Method Details

.configObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/active_admin/devise.rb', line 6

def self.config
  config = {
    :path => ActiveAdmin.application.default_namespace,
    :controllers => ActiveAdmin::Devise.controllers,
    :path_names => { :sign_in => 'login', :sign_out => "logout" }
  }

  if ::Devise.respond_to?(:sign_out_via)
    logout_methods = [::Devise.sign_out_via, ActiveAdmin.application.logout_link_method].flatten.uniq
    config.merge!( :sign_out_via => logout_methods)
  end

  config
end

.controllersObject



21
22
23
24
25
26
# File 'lib/active_admin/devise.rb', line 21

def self.controllers
  {
    :sessions => "active_admin/devise/sessions",
    :passwords => "active_admin/devise/passwords"
  }
end