err, a tiny weak to use String#include? not #index
--- rails-2.0.1/lib/rails/plugin/loader.orig.rb 2007-12-13 00:01:38.000000000
+0200
+++ rails-2.0.1/lib/rails/plugin/loader.rb 2007-12-13 00:15:49.000000000
+0200
@@ -42,11 +42,14 @@
#
# Plugin load paths are also added to Dependencies.load_paths, and
Dependencies.load_once_paths.
def add_plugin_load_paths
+ reloadable_path = File.join('vendor', 'plugins', 'reloadable')
plugins.each do |plugin|
plugin.load_paths.each do |path|
$LOAD_PATH.insert(application_lib_index + 1, path)
Dependencies.load_paths << path
- Dependencies.load_once_paths << path
+ unless path.include? reloadable_path
+ Dependencies.load_once_paths << path
+ end
end
end
$LOAD_PATH.uniq!
@@ -147,4 +150,4 @@
end
end
-end
\ No newline at end of file
+end
_______________________________________________
Engine-Developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org