mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Fix autoloading of plugins fails in Rails 7.1.2 (#36320).
Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22505 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9b2b30b887
commit
8f210b35d2
@ -126,7 +126,7 @@ module Redmine
|
||||
# Add the plugin directories to rails autoload paths
|
||||
engine_cfg = Rails::Engine::Configuration.new(directory.to_s)
|
||||
engine_cfg.paths.add 'lib', eager_load: true
|
||||
engine_cfg.eager_load_paths.each do |dir|
|
||||
engine_cfg.all_eager_load_paths.each do |dir|
|
||||
Rails.autoloaders.main.push_dir dir
|
||||
Rails.application.config.watchable_dirs[dir] = [:rb]
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user