aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-09-24 12:54:31 +0200
committerJosé Valim <jose.valim@gmail.com>2010-09-24 12:54:31 +0200
commit6b3ad0cafc4203b0a171ac3c8be24e1c4402e150 (patch)
tree87a4aceb1ca289e316481a3456344bc59ac74fd7 /actionpack/lib/action_controller
parent672ce11d684e1211836ca22cf5b0ca6f626f1719 (diff)
downloadrails-6b3ad0cafc4203b0a171ac3c8be24e1c4402e150.tar.gz
rails-6b3ad0cafc4203b0a171ac3c8be24e1c4402e150.tar.bz2
rails-6b3ad0cafc4203b0a171ac3c8be24e1c4402e150.zip
There is no need to use instance_eval since the proc is created in the same context it is eval'ed.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/redirecting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb
index fb50fcae16..55c650df6c 100644
--- a/actionpack/lib/action_controller/metal/redirecting.rb
+++ b/actionpack/lib/action_controller/metal/redirecting.rb
@@ -88,7 +88,7 @@ module ActionController
raise RedirectBackError unless refer = request.headers["Referer"]
refer
when Proc
- _compute_redirect_to_location instance_eval(&options)
+ _compute_redirect_to_location options.call
else
url_for(options)
end.gsub(/[\r\n]/, '')