Module: Authlogic::Session::Cookies

Included in:
Base
Defined in:
lib/novelys_authlogic/session/cookies.rb

Overview

Handles all authentication that deals with cookies, such as persisting, saving, and destroying.

Defined Under Namespace

Modules: Config, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/novelys_authlogic/session/cookies.rb', line 5

def self.included(klass)
  klass.class_eval do
    extend Config
    include InstanceMethods
    persist :persist_by_cookie
    after_save :save_cookie
    after_destroy :destroy_cookie
  end
end