mirror of https://github.com/rails/rails
Fix `rake routes` method name output [#3422 state:resolved]
This commit is contained in:
parent
6083a87d63
commit
55ae53baad
|
@ -27,8 +27,13 @@ module ActionDispatch
|
|||
end
|
||||
|
||||
def verb
|
||||
if verb = conditions[:verb]
|
||||
verb.to_s.upcase
|
||||
if method = conditions[:request_method]
|
||||
case method
|
||||
when Regexp
|
||||
method.source.upcase
|
||||
else
|
||||
method.to_s.upcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue