Module: Authlogic::ActsAsAuthentic::Password::Callbacks

Defined in:
lib/authlogic/acts_as_authentic/password.rb

Overview

Callbacks / hooks to allow other modules to modify the behavior of this module.

Constant Summary collapse

METHODS =
[
  "before_password_set", "after_password_set",
  "before_password_verification", "after_password_verification"
]

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



120
121
122
123
# File 'lib/authlogic/acts_as_authentic/password.rb', line 120

def self.included(klass)
  return if !klass.column_names.include?(klass.crypted_password_field.to_s)
  klass.define_callbacks *METHODS
end