Skip to content

Commit cd07727

Browse files
committed
Use require instead of load to avoid reload issue
1 parent 3d4d2d2 commit cd07727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
if Rails.version > '6.0' && Rails.autoloaders.zeitwerk_enabled?
6161
Dir.glob("#{Rails.root}/plugins/redmine_gtt/app/overrides/**/*.rb").each do |path|
6262
Rails.autoloaders.main.ignore(path)
63-
load File.expand_path(path, __FILE__)
63+
require path
6464
end
6565
RedmineGtt.setup_normal_patches
6666
Rails.application.config.after_initialize do

0 commit comments

Comments
 (0)