Project

General

Profile

Defect #36273 ยป 0001-Add-the-code-under-lib-redmine-and-plugins-to-the-fi.patch

Takashi Kato, 2022-12-17 07:14

View differences:

config/initializers/zeitwerk.rb
2 2

  
3 3
lib = Rails.root.join('lib/redmine')
4 4
Rails.autoloaders.main.push_dir lib, namespace: Redmine
5
Rails.application.config.watchable_dirs[lib] = [:rb]
5 6

  
6 7
IGNORE_LIST = [
7 8
  'wiki_formatting/textile/redcloth3.rb',
lib/redmine/plugin_loader.rb
128 128
        engine_cfg.paths.add 'lib', eager_load: true
129 129
        engine_cfg.eager_load_paths.each do |dir|
130 130
          Rails.autoloaders.main.push_dir dir
131
          Rails.application.config.watchable_dirs[dir] = [:rb]
131 132
        end
132 133
      end
133 134
    end
    (1-1/1)