diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-26 20:30:21 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-26 20:30:21 +0100 |
commit | 3cc9d1c5ad1639283b43ee2b6099cb4f3b19bf23 (patch) | |
tree | ba063189607368887bc42384d9918c45206fd1ba /railties/lib/rails/plugin | |
parent | 7d8f9ef0517c5e83b0e6042c3747e9cfe2b0a4ca (diff) | |
download | rails-3cc9d1c5ad1639283b43ee2b6099cb4f3b19bf23.tar.gz rails-3cc9d1c5ad1639283b43ee2b6099cb4f3b19bf23.tar.bz2 rails-3cc9d1c5ad1639283b43ee2b6099cb4f3b19bf23.zip |
Let all plugins not just engines have a config/routes.rb file
Diffstat (limited to 'railties/lib/rails/plugin')
-rw-r--r-- | railties/lib/rails/plugin/loader.rb | 3 |
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 |