aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-05-18 01:21:48 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-05-18 01:21:48 +0000
commitd8d6ef8a3d3bbb86d0581329bfd0c026312e8847 (patch)
treed08a1552444eceed114eb1e645ddfa2cc1a6cab1 /actionpack
parent45a79034e413f81c4b2175d3e20ed65f9725f95b (diff)
downloadrails-d8d6ef8a3d3bbb86d0581329bfd0c026312e8847.tar.gz
rails-d8d6ef8a3d3bbb86d0581329bfd0c026312e8847.tar.bz2
rails-d8d6ef8a3d3bbb86d0581329bfd0c026312e8847.zip
Oops.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rwxr-xr-xactionpack/lib/action_controller/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index a10ac44939..4aa7c05f98 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -1032,6 +1032,10 @@ module ActionController #:nodoc:
when :back
request.env["HTTP_REFERER"] ? redirect_to(request.env["HTTP_REFERER"]) : raise(RedirectBackError)
+ when Hash
+ redirect_to(url_for(options))
+ response.redirected_to = options
+
else
redirect_to(url_for(options))
end