mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
There is no need to use instance_eval since the proc is created in the same context it is eval'ed.
This commit is contained in:
parent
672ce11d68
commit
6b3ad0cafc
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ module ActionController
|
||||||
raise RedirectBackError unless refer = request.headers["Referer"]
|
raise RedirectBackError unless refer = request.headers["Referer"]
|
||||||
refer
|
refer
|
||||||
when Proc
|
when Proc
|
||||||
_compute_redirect_to_location instance_eval(&options)
|
_compute_redirect_to_location options.call
|
||||||
else
|
else
|
||||||
url_for(options)
|
url_for(options)
|
||||||
end.gsub(/[\r\n]/, '')
|
end.gsub(/[\r\n]/, '')
|
||||||
|
|
Loading…
Reference in a new issue