Module: Pubcookie::SessionsController
- Defined in:
- lib/pubcookie/sessions_controller.rb
Overview
Extends the core SessionController to properly destroy the local session on logout, and redirect to the Pubcookie server for logout.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(controller_class) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/pubcookie/sessions_controller.rb', line 9 def self.included(controller_class) controller_class.send(:include, InstanceMethods) controller_class.alias_method_chain :new, :pubcookie controller_class.alias_method_chain :destroy, :pubcookie controller_class.alias_method_chain :logout_user, :pubcookie end |