summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-12-21 01:36:45 +0000
committerGo MAEDA <maeda@farend.jp>2022-12-21 01:36:45 +0000
commitf376fb68673bb74175943a9f37e7f9bb442bf155 (patch)
tree8f164facd080d2962c15d10925681568cc3c1820 /lib
parentf094471ff51bf6c9984fd30e54b27925b0616d2d (diff)
downloadredmine-f376fb68673bb74175943a9f37e7f9bb442bf155.tar.gz
redmine-f376fb68673bb74175943a9f37e7f9bb442bf155.zip
Modifying the source code of a plugin does not reload it after r21295 ( #36273).
Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@21992 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/plugin_loader.rb1
1 files changed, 1 insertions, 0 deletions
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