Module: Authentication

Defined in:
lib/authentication.rb,
lib/authentication/by_password.rb,
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/authentication.rb', line 21

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