Module: Authlogic::Session::Activation

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

Overview

Activating Authlogic requires that you pass it an Authlogic::ControllerAdapters::AbstractAdapter object, or a class that extends it. This is sort of like a database connection for an ORM library, Authlogic can't do anything until it is “connected” to a controller. If you are using a supported framework, Authlogic takes care of this for you.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: NotActivatedError

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object


13
14
15
16
17
18
# File 'lib/authlogic/session/activation.rb', line 13

def self.included(klass)
  klass.class_eval do
    extend ClassMethods
    include InstanceMethods
  end
end