aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2015-02-08 23:50:16 +0000
committerAndrew White <pixeltrix@users.noreply.github.com>2015-02-08 23:50:16 +0000
commitb6dd0c4ddebf5e7aab0a669915cb349ec65e5b88 (patch)
treeb258b2d5128ff0d29a571835815dc68380286e71 /actionpack/lib
parentde9a3748c436f849dd1877851115cd94663c2725 (diff)
parentb9c63b0aae7a7f9ddf32e155b11a51bd9c441857 (diff)
downloadrails-b6dd0c4ddebf5e7aab0a669915cb349ec65e5b88.tar.gz
rails-b6dd0c4ddebf5e7aab0a669915cb349ec65e5b88.tar.bz2
rails-b6dd0c4ddebf5e7aab0a669915cb349ec65e5b88.zip
Merge pull request #18764 from tsun1215/master
Explicitly ignored wildcard verbs from head_routes
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/journey/router.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router.rb b/actionpack/lib/action_dispatch/journey/router.rb
index 2b036796ab..e9df984c86 100644
--- a/actionpack/lib/action_dispatch/journey/router.rb
+++ b/actionpack/lib/action_dispatch/journey/router.rb
@@ -121,6 +121,7 @@ module ActionDispatch
end
def match_head_routes(routes, req)
+ routes.delete_if { |route| route.verb == // }
head_routes = match_routes(routes, req)
if head_routes.empty?