Module: Authentication

Included in:
User
Defined in:
lib/branston/vendor/plugins/restful_authentication/lib/authentication.rb,
lib/branston/vendor/plugins/restful_authentication/lib/authentication/by_password.rb,
lib/branston/vendor/plugins/restful_authentication/lib/authentication/by_cookie_token.rb

Defined Under Namespace

Modules: ByCookieToken, ByCookieTokenController, ByPassword, ModelClassMethods, ModelInstanceMethods

Class Method Summary collapse

Class Method Details

.included(recipient) ⇒ Object



21
22
23
24
25
26
# File 'lib/branston/vendor/plugins/restful_authentication/lib/authentication.rb', line 21

def self.included(recipient)
  recipient.extend(ModelClassMethods)
  recipient.class_eval do
    include ModelInstanceMethods
  end
end