Defect #36273 ยป 0001-Add-the-code-under-lib-redmine-and-plugins-to-the-fi.patch
| config/initializers/zeitwerk.rb | ||
|---|---|---|
|
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',
|
||
| lib/redmine/plugin_loader.rb | ||
|---|---|---|
|
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
|
||