Skip to content

Commit

Permalink
Take in account .deface files when running Redmine 5
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Nov 29, 2023
1 parent 132539b commit 5917f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# - deface doesn't support direct loading anymore ; it unloads everything at boot so that reload in dev works
# - hack consists in adding "app/overrides" path of all plugins in Redmine's main #paths
if Rails.version > '6.0'
Dir.glob("#{Rails.root}/plugins/*/app/overrides/**/*.rb").each do |path|
Dir.glob("#{Rails.root}/plugins/*/app/overrides/**/*.{rb,deface}").each do |path|
Rails.autoloaders.main.ignore(path)
load File.expand_path(path, __FILE__)
end
Expand Down

0 comments on commit 5917f9a

Please sign in to comment.