Permalink
Browse files

Let all plugins not just engines have a config/routes.rb file

  • Loading branch information...
dhh committed Nov 26, 2008
1 parent 7d8f9ef commit 3cc9d1c5ad1639283b43ee2b6099cb4f3b19bf23
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/rails/plugin/loader.rb
@@ -68,8 +68,9 @@ def controller_paths
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

2 comments on commit 3cc9d1c

Contributor

lazyatom replied Nov 26, 2008

In the light of this commit, I’m not sure if we need the #engine? method in Plugin, or the #engines method in Plugin::Loader?

Owner

dhh replied Nov 27, 2008

The call to controller_paths uses it.

Please sign in to comment.