diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-09-11 17:14:42 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-09-12 16:50:48 -0700 |
commit | d21e0e2af3d9b21399244c3f3f73378d75cd4697 (patch) | |
tree | d3ad9a90082af72ec8e5e6d6abb108d800a1dd60 /railties/lib/rails | |
parent | a08bee784125d569f63ddd9fa875ae9c5d18b342 (diff) | |
download | rails-d21e0e2af3d9b21399244c3f3f73378d75cd4697.tar.gz rails-d21e0e2af3d9b21399244c3f3f73378d75cd4697.tar.bz2 rails-d21e0e2af3d9b21399244c3f3f73378d75cd4697.zip |
adjust route inspection to work with Journey
Diffstat (limited to 'railties/lib/rails')
-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 |