lib/radiant/extension_loader.rb in radiant-0.6.3 vs lib/radiant/extension_loader.rb in radiant-0.6.4
- old
+ new
@@ -76,11 +76,11 @@
extension_roots = all_extension_roots
end
extension_roots.each do |ext_path|
load_paths = %w(lib app/models app/controllers app/helpers test/helpers).collect { |p| "#{ext_path}/#{p}" }
load_paths << ext_path
- load_paths.each { |p| configuration.load_paths << p }
+ load_paths.each { |p| configuration.load_paths << p; $LOAD_PATH << p; }
configuration.controller_paths << "#{ext_path}/app/controllers"
configuration.view_paths << "#{ext_path}/app/views"
@extension_roots << ext_path
end
initializer.set_autoload_paths
@@ -131,6 +131,6 @@
extension.enable(enabled)
extension if enabled
end
end
-end
\ No newline at end of file
+end