diff options
-rw-r--r-- | config/initializers/zeitwerk.rb | 1 | ||||
-rw-r--r-- | lib/redmine/plugin_loader.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/zeitwerk.rb b/config/initializers/zeitwerk.rb index f5630b3ee..ab86b28e2 100644 --- a/config/initializers/zeitwerk.rb +++ b/config/initializers/zeitwerk.rb @@ -2,6 +2,7 @@ lib = Rails.root.join('lib/redmine') Rails.autoloaders.main.push_dir lib, namespace: Redmine +Rails.application.config.watchable_dirs[lib] = [:rb] IGNORE_LIST = [ 'wiki_formatting/textile/redcloth3.rb', diff --git a/lib/redmine/plugin_loader.rb b/lib/redmine/plugin_loader.rb index be7f914f4..16b18fff5 100644 --- a/lib/redmine/plugin_loader.rb +++ b/lib/redmine/plugin_loader.rb @@ -128,6 +128,7 @@ module Redmine engine_cfg.paths.add 'lib', eager_load: true engine_cfg.eager_load_paths.each do |dir| Rails.autoloaders.main.push_dir dir + Rails.application.config.watchable_dirs[dir] = [:rb] end end end |