Module: Authlogic::Session::Foundation

Included in:
Base
Defined in:
lib/authlogic/session/foundation.rb

Overview

Sort of like an interface, it sets the foundation for the class, such as the required methods. This also allows other modules to overwrite methods and call super on them. It’s also a place to put “utility” methods used throughout Authlogic.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/authlogic/session/foundation.rb', line 7

def self.included(klass)
  klass.class_eval do
    class_attribute :acts_as_authentic_config
    self.acts_as_authentic_config  ||= {}
    
    extend ClassMethods
    include InstanceMethods
  end
end