Defect #30753 » 0001-adds-lib-directory-of-plugins-to-eager_load_paths.patch
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 |
- « Previous
- 1
- 2
- 3
- 4
- Next »