mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix rake routes
method name output [#3422 state:resolved]
This commit is contained in:
parent
6083a87d63
commit
55ae53baad
1 changed files with 7 additions and 2 deletions
|
@ -27,8 +27,13 @@ module ActionDispatch
|
||||||
end
|
end
|
||||||
|
|
||||||
def verb
|
def verb
|
||||||
if verb = conditions[:verb]
|
if method = conditions[:request_method]
|
||||||
verb.to_s.upcase
|
case method
|
||||||
|
when Regexp
|
||||||
|
method.source.upcase
|
||||||
|
else
|
||||||
|
method.to_s.upcase
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue