mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Undeprecate redirect_to with Hash argument and additional url_for parameters. Closes #7837.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -22,6 +22,11 @@ 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
|
||||
@@ -97,6 +102,11 @@ class RedirectTest < Test::Unit::TestCase
|
||||
get :redirect_to_back
|
||||
}
|
||||
end
|
||||
|
||||
def test_redirect_with_parameters
|
||||
get :redirect_with_parameters
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
module ModuleTest
|
||||
|
||||
Reference in New Issue
Block a user