mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user