Define get_via_redirect as well. Closes #6834 [colthorp]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Michael Koziarski
2007-10-13 03:32:20 +00:00
parent bd03bf9f5e
commit 569c7d5488

View File

@@ -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