Module: Authentication::ByCookieToken

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

Defined Under Namespace

Modules: ModelClassMethods, ModelInstanceMethods

Class Method Summary collapse

Class Method Details

.included(recipient) ⇒ Object

Stuff directives into including module



5
6
7
8
9
10
# File 'lib/branston/vendor/plugins/restful_authentication/lib/authentication/by_cookie_token.rb', line 5

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