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
1 changed files with 7 additions and 2 deletions

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