diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-14 10:20:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-14 10:39:33 -0700 |
commit | 7fa6600b52b7477a958473d504415b7610d39b34 (patch) | |
tree | 06dc9681cf0973254d1dd75c0ebdd52a28602e6e /actionpack/lib | |
parent | ad311f215da43c6ddac5697ff37e1b93dbcbedcb (diff) | |
download | rails-7fa6600b52b7477a958473d504415b7610d39b34.tar.gz rails-7fa6600b52b7477a958473d504415b7610d39b34.tar.bz2 rails-7fa6600b52b7477a958473d504415b7610d39b34.zip |
use predicate methods instead of hard coding verb strings
also change the feeler to subclass AD::Request so that it has all the
methods that Request has
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/router.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router.rb b/actionpack/lib/action_dispatch/journey/router.rb index 543ffc144e..f649588520 100644 --- a/actionpack/lib/action_dispatch/journey/router.rb +++ b/actionpack/lib/action_dispatch/journey/router.rb @@ -101,7 +101,7 @@ module ActionDispatch } routes = - if req.request_method == "HEAD" + if req.head? match_head_routes(routes, req) else match_routes(routes, req) |