public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/courtenay/engines.git
fix for rails plugin reloading (only call init once)
courtenay (author)
Sun Apr 27 21:20:32 -0700 2008
commit  0ef9ca82de17093bf336d1e2e1c70ea5a0661ec8
tree    f889f94826bb445135667aa0f8327fef2a55e698
parent  8aaef7e81bf96a15e5e4f624eeb7b14601887c89
...
1
2
 
 
 
 
 
...
 
 
1
2
3
4
5
0
@@ -1,2 +1,5 @@
0
-Engines.init if defined? :Engines
0
-
0
+# Only call Engines.init once, in the after_initialize block so that Rails
0
+# plugin reloading works when turned on
0
+config.after_initialize do
0
+ Engines.init if defined? :Engines
0
+end

Comments

    No one has commented yet.