aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
diff options
context:
space:
mode:
authorAgis- <corestudiosinc@gmail.com>2014-08-22 16:52:48 +0300
committerAgis- <corestudiosinc@gmail.com>2014-08-25 00:18:25 +0300
commitd78f3f0ec33d57e78249d5b96f38401a1c239410 (patch)
treec104b4ea6c2bc8522290ea4970b4ebbe3b0421aa /actionpack/lib/action_dispatch/routing/mapper.rb
parent53cc3ab46bc0822a804b69e4ba05892e69982cac (diff)
downloadrails-d78f3f0ec33d57e78249d5b96f38401a1c239410.tar.gz
rails-d78f3f0ec33d57e78249d5b96f38401a1c239410.tar.bz2
rails-d78f3f0ec33d57e78249d5b96f38401a1c239410.zip
Don't ignore constraints in redirect routes
https://github.com/rails/rails/commit/402c2af55053c2f29319091ad21fd6fa6b90ee89 introduced a regression that caused any constraints added to redirect routes to be ignored. Fixes #16605
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index e92baa5aa7..fc28740828 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -241,8 +241,6 @@ module ActionDispatch
end
def app(blocks)
- return to if Redirect === to
-
if to.respond_to?(:call)
Constraints.new(to, blocks, false)
else