Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Define get_via_redirect as well. Closes #6834 [colthorp]

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 569c7d5488b6b021e6efb856c9e75322ead05c77 1 parent bd03bf9
Michael Koziarski NZKoz authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionpack/lib/action_controller/integration.rb
3  actionpack/lib/action_controller/integration.rb
@@ -493,7 +493,8 @@ def reset!
@integration_session = open_session
- %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
Please sign in to comment.
Something went wrong with that request. Please try again.