Module: UsersAuthentication

Included in:
User
Defined in:
lib/generators/fetty/authentication/templates/lib/users_authentication.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Status

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



92
93
94
95
96
97
98
99
# File 'lib/generators/fetty/authentication/templates/lib/users_authentication.rb', line 92

def self.included(receiver)
  receiver.send :attr_accessor, :password, :password_confirmation
  receiver.send :before_save, :prepare_password
  receiver.send :before_create, :prepare_activation
  
  receiver.extend ClassMethods
  receiver.send :include, InstanceMethods
end