Module: Authentifyd

Defined in:
lib/authentifyd.rb,
app/models/authentifyd.rb,
lib/authentifyd/engine.rb,
lib/authentifyd/version.rb,
app/helpers/authentifyd/application_helper.rb,
app/controllers/authentifyd/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: ApplicationController, Authentication, AuthenticationsController, ConfirmationsController, Engine, PasswordsController, RegistrationsController, SessionsController, UnlocksController, User

Constant Summary collapse

VERSION =
"0.1.0.6"

Class Method Summary collapse

Class Method Details

.devise_configObject



20
21
22
23
24
25
26
27
28
# File 'lib/authentifyd.rb', line 20

def self.devise_config
  (@@devise_config || {}).reverse_merge({
    :registrations_controller   => 'authentifyd/registrations',
    :sessions_controller        => 'authentifyd/sessions',
    :confirmations_controller   => 'authentifyd/confirmations',
    :passwords_controller       => 'authentifyd/passwords',
    :unlocks_controller         => 'authentifyd/unlocks'
  })
end

.embeddable_callback_path(_path) ⇒ Object



34
35
36
# File 'lib/authentifyd.rb', line 34

def self.embeddable_callback_path(_path)
  (Authentifyd.path_prefix ?  "#{Authentifyd.path_prefix}/" : '') + Authentifyd.mount_path + _path
end

.mount_pathObject



30
31
32
# File 'lib/authentifyd.rb', line 30

def self.mount_path
  @@mount_path ||= "/"
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Authentifyd)

    the object that the method was called on



38
39
40
# File 'lib/authentifyd.rb', line 38

def self.setup
  yield self
end

.table_name_prefixObject



2
3
4
# File 'app/models/authentifyd.rb', line 2

def self.table_name_prefix
  'authentifyd_'
end