Module: ActionController::SessionManagement

Defined in:
lib/action_controller/session_management.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object


9
10
11
12
13
14
15
# File 'lib/action_controller/session_management.rb', line 9

def self.append_features(base)
  super
  base.extend(ClassMethods)
  base.send(:alias_method, :process_without_session_management_support, :process)
  base.send(:alias_method, :process, :process_with_session_management_support)
  base.after_filter(:clear_persistant_model_associations)
end

Instance Method Details

#process_with_session_management_support(request, response, method = :perform_action, *arguments) ⇒ Object

:nodoc:


113
114
115
116
117
# File 'lib/action_controller/session_management.rb', line 113

def process_with_session_management_support(request, response, method = :perform_action, *arguments) #:nodoc:
  action = request.parameters["action"] || "index"
  request.session_options = self.class.session_options_for(request, action)
  process_without_session_management_support(request, response, method, *arguments)
end