Project

General

Profile

Defect #30753 » 0001-adds-lib-directory-of-plugins-to-eager_load_paths.patch

Jens Krämer, 2019-03-08 05:44

View differences:

lib/redmine/plugin.rb
109 109

  
110 110
      # Add the plugin directories to rails autoload paths
111 111
      engine_cfg = Rails::Engine::Configuration.new(p.directory)
112
      engine_cfg.paths.add 'lib', eager_load: true
112 113
      Rails.application.config.eager_load_paths += engine_cfg.eager_load_paths
113 114
      Rails.application.config.autoload_once_paths += engine_cfg.autoload_once_paths
114 115
      Rails.application.config.autoload_paths += engine_cfg.autoload_paths
(4-4/4)