public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Let all plugins not just engines have a config/routes.rb file
dhh (author)
Wed Nov 26 11:30:21 -0800 2008
commit  3cc9d1c5ad1639283b43ee2b6099cb4f3b19bf23
tree    ba063189607368887bc42384d9918c45206fd1ba
parent  7d8f9ef0517c5e83b0e6042c3747e9cfe2b0a4ca
...
68
69
70
 
71
72
 
73
74
75
...
68
69
70
71
72
 
73
74
75
76
0
@@ -68,8 +68,9 @@ module Rails
0
         engines.collect(&:controller_path)
0
       end
0
       
0
+      # Returns an array of routing.rb files from all the plugins that include config/routes.rb
0
       def routing_files
0
-        engines.select(&:routed?).collect(&:routing_file)
0
+        plugins.select(&:routed?).collect(&:routing_file)
0
       end
0
       
0
       

Comments

lazyatom Wed Nov 26 15:22:19 -0800 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?

dhh Thu Nov 27 00:39:58 -0800 2008

The call to controller_paths uses it.