public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/technoweenie/engines.git
fix for rails plugin reloading (only call init once)
courtenay (author)
Sun Apr 27 21:20:32 -0700 2008
lazyatom (committer)
Mon Apr 28 08:53:18 -0700 2008
commit  f7656144b71685c06cfc04dbf41825358646b466
tree    d9899176688415992554ebde9ad4d279b287b1c6
parent  ffe8a9be8580510ffbe0f176110c303883d5575c
...
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.