Module: Clearance::User::Callbacks

Defined in:
lib/clearance/user.rb

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



46
47
48
49
50
# File 'lib/clearance/user.rb', line 46

def self.included(model)
  model.class_eval do
    before_save :initialize_salt, :encrypt_password, :initialize_token
  end
end