Skip to content

Commit

Permalink
Fix rake routes method name output [#3422 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Oct 26, 2009
1 parent 6083a87 commit 55ae53b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions actionpack/lib/action_dispatch/routing/route.rb
Expand Up @@ -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

Expand Down

0 comments on commit 55ae53b

Please sign in to comment.