aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/plugin/loader.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/plugin/loader.rb b/railties/lib/rails/plugin/loader.rb
index ba3f67d1d0..f08d9b74e2 100644
--- a/railties/lib/rails/plugin/loader.rb
+++ b/railties/lib/rails/plugin/loader.rb
@@ -68,8 +68,9 @@ module Rails
engines.collect(&:controller_path)
end
+ # Returns an array of routing.rb files from all the plugins that include config/routes.rb
def routing_files
- engines.select(&:routed?).collect(&:routing_file)
+ plugins.select(&:routed?).collect(&:routing_file)
end