Module: Authlogic::ControllerAdapters::RailsAdapter::RailsImplementation
- Defined in:
- lib/authlogic/controller_adapters/rails_adapter.rb
Overview
Lets Authlogic know about the controller object via a before filter, AKA “activates” authlogic.
Class Method Summary collapse
-
.included(klass) ⇒ Object
:nodoc:.
Class Method Details
.included(klass) ⇒ Object
:nodoc:
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/authlogic/controller_adapters/rails_adapter.rb', line 45 def self.included(klass) # :nodoc: if defined?(::ApplicationController) raise AuthlogicLoadedTooLateError end # In Rails 4.0.2, the *_filter methods were renamed to *_action. if klass.respond_to? :prepend_before_action klass.prepend_before_action :activate_authlogic else klass.prepend_before_filter :activate_authlogic end end |