diff options
-rw-r--r-- | actionpack/lib/action_controller/metal/redirecting.rb | 2 |
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]/, '') |