diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-16 13:55:36 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-16 13:55:36 +0000 |
commit | c593721e7c5749311c5c8e503c3b248194292d6f (patch) | |
tree | 1b0e999903e5674ceae83ed61e66751d2a4bd719 | |
parent | bcff10adeccca10c75ef3c9539deb039c0bd775c (diff) | |
download | rails-c593721e7c5749311c5c8e503c3b248194292d6f.tar.gz rails-c593721e7c5749311c5c8e503c3b248194292d6f.tar.bz2 rails-c593721e7c5749311c5c8e503c3b248194292d6f.zip |
Revert [6430] since the test is faulty. References #7837, closes #7842.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 2 | ||||
-rwxr-xr-x | actionpack/test/controller/redirect_test.rb | 10 |
3 files changed, 1 insertions, 13 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 7b0ef65172..ecfebf7e67 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -2,8 +2,6 @@ * Performance: patch cgi/session/pstore to require digest/md5 once rather than per #initialize. #7583 [Stefan Kaes] -* Undeprecate redirect_to with Hash argument and additional url_for parameters. #7837 [subelsky] - * Cookie session store: ensure that new sessions doesn't reuse data from a deleted session in the same request. [Jeremy Kemper] * Deprecation: verification with :redirect_to => :named_route shouldn't be deprecated. #7525 [Justin French] diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index d6c7677d55..2f7919cc07 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1037,7 +1037,7 @@ module ActionController #:nodoc: response.redirected_to = options else # TOOD: Deprecate me! - redirect_to(url_for(options)) + redirect_to(url_for(options, *parameters_for_method_reference)) response.redirected_to, response.redirected_to_method_params = options, parameters_for_method_reference end end diff --git a/actionpack/test/controller/redirect_test.rb b/actionpack/test/controller/redirect_test.rb index c4d2ebe5cb..df037ec28d 100755 --- a/actionpack/test/controller/redirect_test.rb +++ b/actionpack/test/controller/redirect_test.rb @@ -22,11 +22,6 @@ class RedirectController < ActionController::Base redirect_to :back end - def redirect_with_parameters - session[:params] = { :user => 'test'} - redirect_to session[:params], :acton => 'hello_world' - end - def rescue_errors(e) raise e end def rescue_action(e) raise end @@ -102,11 +97,6 @@ class RedirectTest < Test::Unit::TestCase get :redirect_to_back } end - - def test_redirect_with_parameters - get :redirect_with_parameters - end - end module ModuleTest |