Class: Authlogic::ControllerAdapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/authlogic/controller_adapters/abstract_adapter.rb

Overview

Abstract Adapter

Allows you to use Authlogic in any framework you want, not just rails. See tha RailsAdapter for an example of how to adapter Authlogic to work with your framework.

Direct Known Subclasses

MerbAdapter, RailsAdapter

Instance Method Summary collapse

Instance Method Details

#authenticate_with_http_basic(&block) ⇒ Object



6
7
8
# File 'lib/authlogic/controller_adapters/abstract_adapter.rb', line 6

def authenticate_with_http_basic(&block)
  black.call(nil, nil)
end

#cookiesObject



10
11
12
# File 'lib/authlogic/controller_adapters/abstract_adapter.rb', line 10

def cookies
  {}
end

#requestObject



14
15
16
# File 'lib/authlogic/controller_adapters/abstract_adapter.rb', line 14

def request
  nil
end

#sessionObject



18
19
20
# File 'lib/authlogic/controller_adapters/abstract_adapter.rb', line 18

def session
  {}
end