Module: Barjillo::ActAsAuthModel::Callbacks

Defined in:
lib/barjillo/act_as_auth_model.rb

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/barjillo/act_as_auth_model.rb', line 15

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