aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2011-11-25 12:42:11 +0100
committerPiotr Sarnacki <drogus@gmail.com>2011-11-25 12:45:58 +0100
commitc9bb099318dd3bc293a6cb4672333147c1cce4b9 (patch)
tree71a1b38c5a81f5fb5ed7f5cc59587087fdc2d4fa /railties/lib
parentfcacc6986ab60f1fb2e423a73bf47c7abd7b191d (diff)
downloadrails-c9bb099318dd3bc293a6cb4672333147c1cce4b9.tar.gz
rails-c9bb099318dd3bc293a6cb4672333147c1cce4b9.tar.bz2
rails-c9bb099318dd3bc293a6cb4672333147c1cce4b9.zip
Display mounted engines in `rake routes` by default
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/application/route_inspector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/route_inspector.rb b/railties/lib/rails/application/route_inspector.rb
index 8da7de2584..26652a8e5e 100644
--- a/railties/lib/rails/application/route_inspector.rb
+++ b/railties/lib/rails/application/route_inspector.rb
@@ -46,7 +46,7 @@ module Rails
end
def collect_engine_routes(name, rack_app)
- return unless rack_app && ENV["ENGINES"] && rack_app.respond_to?(:routes)
+ return unless rack_app && rack_app.respond_to?(:routes)
return if @engines[name]
routes = rack_app.routes