From 97f9000cf2c4cfad91b074c8fd08aee2ea954ee5 Mon Sep 17 00:00:00 2001
From: Peter Suschlik <ps@neopoly.de>
Date: Thu, 5 May 2011 12:05:25 +0200
Subject: Display custom asset routes in `rake routes`

---
 railties/lib/rails/tasks/routes.rake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'railties/lib')

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
-- 
cgit v1.2.3