diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-05 03:32:55 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-05 03:32:55 -0700 |
commit | 5e1960ea200274ec2157f5fae1c91ee722b56498 (patch) | |
tree | 9ae27d81aa99eb152575e714415f4e395ff7e3c0 /railties/lib | |
parent | 008b178a90cf6a9eb70015373cc39b8c6f40ed35 (diff) | |
parent | 97f9000cf2c4cfad91b074c8fd08aee2ea954ee5 (diff) | |
download | rails-5e1960ea200274ec2157f5fae1c91ee722b56498.tar.gz rails-5e1960ea200274ec2157f5fae1c91ee722b56498.tar.bz2 rails-5e1960ea200274ec2157f5fae1c91ee722b56498.zip |
Merge pull request #394 from splattael/fix_rake_routes_shows_custom_assets
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 |