diff options
author | Peter Suschlik <ps@neopoly.de> | 2011-05-05 12:05:25 +0200 |
---|---|---|
committer | Peter Suschlik <ps@neopoly.de> | 2011-05-05 12:14:40 +0200 |
commit | 97f9000cf2c4cfad91b074c8fd08aee2ea954ee5 (patch) | |
tree | 180dcef47c0cfd7a4d058378b5f30586306fbb19 /railties/lib | |
parent | 3e9bb5459cfc88e0fa6de7a14b21490308ed9682 (diff) | |
download | rails-97f9000cf2c4cfad91b074c8fd08aee2ea954ee5.tar.gz rails-97f9000cf2c4cfad91b074c8fd08aee2ea954ee5.tar.bz2 rails-97f9000cf2c4cfad91b074c8fd08aee2ea954ee5.zip |
Display custom asset routes in `rake routes`
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index bd35ea812b..a0c953967c 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/railties/lib/rails/tasks/routes.rake @@ -17,7 +17,7 @@ task :routes => :environment do end # Skip the route if it's internal info route - routes.reject! { |r| r[:path] =~ %r{/rails/info/properties|/assets} } + routes.reject! { |r| r[:path] =~ %r{/rails/info/properties|^/assets} } name_width = routes.map{ |r| r[:name].length }.max verb_width = routes.map{ |r| r[:verb].length }.max |