Module: Pubcookie::Authentication::Controller
- Defined in:
- lib/pubcookie/authentication/controller.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
-
.included(controller_class) ⇒ Object
Called when this module is included on the given class.
Class Method Details
.included(controller_class) ⇒ Object
Called when this module is included on the given class.
11 12 13 14 15 |
# File 'lib/pubcookie/authentication/controller.rb', line 11 def self.included(controller_class) controller_class.send(:include, InstanceMethods) controller_class.alias_method_chain(:current_user, :pubcookie) controller_class.alias_method_chain(:access_denied, :pubcookie) end |