1
0
Fork 0
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:
Joshua Peek 2009-10-26 11:23:39 -05:00
parent 6083a87d63
commit 55ae53baad

View file

@ -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