diff options
-rw-r--r-- | railties/lib/rails/application/route_inspector.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/application/route_inspector.rb b/railties/lib/rails/application/route_inspector.rb index 15c6d035e5..8c6911e6bb 100644 --- a/railties/lib/rails/application/route_inspector.rb +++ b/railties/lib/rails/application/route_inspector.rb @@ -23,7 +23,8 @@ module Rails reqs = reqs.empty? ? constraints.inspect : "#{reqs} #{constraints.inspect}" end - {:name => route.name.to_s, :verb => route.verb.to_s, :path => route.path, :reqs => reqs} + verb = route.verb.source.gsub(/[$^]/, '') + {:name => route.name.to_s, :verb => verb, :path => route.path.spec.to_s, :reqs => reqs} end # Skip the route if it's internal info route |