GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Desert is a component framework for Rails that allows your plugins have a Rails app like directory structure, routes, migrations, and dependencies.
Homepage: http://desert.rubyforge.org
Clone URL: git://github.com/pivotal/desert.git
bugfix: ActionController::Layouts::ClassMethods.layout_list no longer 
tries to add plugin layout paths when no plugins are defined (fixes long 
hang at Rails 2.1.0 startup... was searching entire filesystem)
Corey Innis (author)
Sat Sep 06 23:50:39 -0700 2008
commit  5d565a3b31f0583cb270e2422c7542d9f7432802
tree    02e7591571b47dbaf7c15111dd1888a296f85d94
parent  3f16268c98785187fb6cad47d98b22996ca46ac0
...
4
5
6
7
 
 
 
8
9
10
...
4
5
6
 
7
8
9
10
11
12
0
@@ -4,7 +4,9 @@ module ActionController #:nodoc:
0
       private
0
         def layout_list_with_plugin_routing
0
           plugin_layouts = Desert::Manager.layout_paths.join(",")
0
- layout_list_without_plugin_routing + Dir["{#{plugin_layouts}}/**/*"]
0
+ plugin_layouts.empty? ?
0
+ layout_list_without_plugin_routing :
0
+ layout_list_without_plugin_routing + Dir["{#{plugin_layouts}}/**/*"]
0
         end
0
         alias_method_chain :layout_list, :plugin_routing
0
     end

Comments

    No one has commented yet.