diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-05-04 19:24:41 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-05-04 19:24:41 -0500 |
commit | 9f062970ca67833dda11ac17c54eec5bb5f111b1 (patch) | |
tree | ac8c469ca0614706d183b377fc2bb6aab53eac54 /railties | |
parent | 38d92d705e18d953bb0d8f4ba5d156755572acfb (diff) | |
download | rails-9f062970ca67833dda11ac17c54eec5bb5f111b1.tar.gz rails-9f062970ca67833dda11ac17c54eec5bb5f111b1.tar.bz2 rails-9f062970ca67833dda11ac17c54eec5bb5f111b1.zip |
Dont show the assets mount in rake routes
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index 02e22361e0..bd35ea812b 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/railties/lib/rails/tasks/routes.rake @@ -16,7 +16,8 @@ task :routes => :environment do {:name => route.name.to_s, :verb => route.verb.to_s, :path => route.path, :reqs => reqs} end - routes.reject! { |r| r[:path] =~ %r{/rails/info/properties} } # Skip the route if it's internal info route + # Skip the route if it's internal info route + 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 |