Method: SessionOff::InstanceMethods#process_with_session_off

Defined in:
lib/session_off.rb,
lib/session_off.rb,
lib/session_off.rb

#process_with_session_off(request, response, method = :perform_action, *args) ⇒ Object

Rails 2.3.x



192
193
194
195
196
197
198
199
200
201
# File 'lib/session_off.rb', line 192

def process_with_session_off(action, *args)
  session_options = self.class.session_options_for(request, action)
  request_session_options = request.session_options
  if request_session_options.is_a?(ActionDispatch::Request::Session::Options)
    request_session_options = request_session_options.instance_variable_get(:@delegate)
  end
  request_session_options.merge! session_options
  disable_session if session_options[:disabled]
  process_without_session_off(action, *args)
end