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

@ -27,8 +27,13 @@ def initialize(app, conditions = {}, requirements = {}, defaults = {}, name = ni
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