Skip to content

Commit fb38723

Browse files
committed
Use require instead of load to avoid reload issue
1 parent b9dc750 commit fb38723

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
@@ -28,7 +28,7 @@
2828
if Rails.version > '6.0' && Rails.autoloaders.zeitwerk_enabled?
2929
Dir.glob("#{Rails.root}/plugins/redmine_custom_fields_groups/app/overrides/**/*.rb").each do |path|
3030
Rails.autoloaders.main.ignore(path)
31-
load File.expand_path(path, __FILE__)
31+
require path
3232
end
3333
Rails.application.config.after_initialize do
3434
RedmineCustomFieldsGroups.setup

0 commit comments

Comments
 (0)