summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/plugin_loader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/plugin_loader.rb b/lib/redmine/plugin_loader.rb
index 2151e949b..4f30f2804 100644
--- a/lib/redmine/plugin_loader.rb
+++ b/lib/redmine/plugin_loader.rb
@@ -126,7 +126,7 @@ module Redmine
# Add the plugin directories to rails autoload paths
engine_cfg = Rails::Engine::Configuration.new(directory.to_s)
engine_cfg.paths.add 'lib', eager_load: true
- engine_cfg.eager_load_paths.each do |dir|
+ engine_cfg.all_eager_load_paths.each do |dir|
Rails.autoloaders.main.push_dir dir
Rails.application.config.watchable_dirs[dir] = [:rb]
end