diff options
-rw-r--r-- | actionpack/lib/action_controller/integration.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/integration.rb b/actionpack/lib/action_controller/integration.rb index bde4bb5776..48b60a9d4c 100644 --- a/actionpack/lib/action_controller/integration.rb +++ b/actionpack/lib/action_controller/integration.rb @@ -493,7 +493,8 @@ module ActionController @integration_session = open_session end - %w(get post put head delete cookies assigns xml_http_request).each do |method| + %w(get post put head delete cookies assigns + xml_http_request get_via_redirect).each do |method| define_method(method) do |*args| reset! unless @integration_session # reset the html_document variable, but only for new get/post calls |