aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-05-10 04:59:29 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-10-09 23:57:49 -0300
commit333bfd896e87862cece95deb1ef88132d5f54ba8 (patch)
tree6287abb4b755baf6cabc39922f8e4f531e90f1d8 /actionpack/lib/action_controller/metal
parenta2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61 (diff)
downloadrails-333bfd896e87862cece95deb1ef88132d5f54ba8.tar.gz
rails-333bfd896e87862cece95deb1ef88132d5f54ba8.tar.bz2
rails-333bfd896e87862cece95deb1ef88132d5f54ba8.zip
Remove deprecated support to `:back` in `redirect_to`
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r--actionpack/lib/action_controller/metal/redirecting.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb
index 2bd4296aff..baa34e5d27 100644
--- a/actionpack/lib/action_controller/metal/redirecting.rb
+++ b/actionpack/lib/action_controller/metal/redirecting.rb
@@ -104,14 +104,6 @@ module ActionController
options
when String
request.protocol + request.host_with_port + options
- when :back
- ActiveSupport::Deprecation.warn(<<-MESSAGE.squish)
- `redirect_to :back` is deprecated and will be removed from Rails 5.1.
- Please use `redirect_back(fallback_location: fallback_location)` where
- `fallback_location` represents the location to use if the request has
- no HTTP referer information.
- MESSAGE
- request.headers["Referer"] || raise(RedirectBackError)
when Proc
_compute_redirect_to_location request, options.call
else