diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-10-13 03:32:20 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-10-13 03:32:20 +0000 |
commit | 569c7d5488b6b021e6efb856c9e75322ead05c77 (patch) | |
tree | d6621030552e7bce6ec2c28914c3a9e7dd88f64f /actionpack/lib | |
parent | bd03bf9f5e2a1a8a667785e82658e3efa3f08a25 (diff) | |
download | rails-569c7d5488b6b021e6efb856c9e75322ead05c77.tar.gz rails-569c7d5488b6b021e6efb856c9e75322ead05c77.tar.bz2 rails-569c7d5488b6b021e6efb856c9e75322ead05c77.zip |
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
Diffstat (limited to 'actionpack/lib')
-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 |