Class: Authgasm::ControllerAdapters::RailsAdapter
Overview
Rails Adapter
Adapts authgasm to work with rails. The point is to close the gap between what authgasm expects and what the rails controller object provides. Similar to how ActiveRecord has an adapter for MySQL, PostgreSQL, SQLite, etc.
Instance Attribute Summary
#controller
Instance Method Summary
collapse
#initialize
Instance Method Details
#authenticate_with_http_basic(*args, &block) ⇒ Object
7
8
9
|
# File 'lib/authgasm/controller_adapters/rails_adapter.rb', line 7
def authenticate_with_http_basic(*args, &block)
controller.authenticate_with_http_basic(*args, &block)
end
|
#cookies ⇒ Object
11
12
13
|
# File 'lib/authgasm/controller_adapters/rails_adapter.rb', line 11
def cookies
controller.send(:cookies)
end
|
#request ⇒ Object
15
16
17
|
# File 'lib/authgasm/controller_adapters/rails_adapter.rb', line 15
def request
controller.request
end
|
#session ⇒ Object
19
20
21
|
# File 'lib/authgasm/controller_adapters/rails_adapter.rb', line 19
def session
controller.session
end
|