From 0adb3940a0ed11f68e7beb7c5f230795f139b726 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 15 Mar 2019 07:58:58 +0000 Subject: [PATCH] Merged r17958 to 4.0-stable (#30753). git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17959 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/plugin.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 82bcde81f..073eb3eb6 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -109,6 +109,7 @@ module Redmine # Add the plugin directories to rails autoload paths engine_cfg = Rails::Engine::Configuration.new(p.directory) + engine_cfg.paths.add 'lib', eager_load: true Rails.application.config.eager_load_paths += engine_cfg.eager_load_paths Rails.application.config.autoload_once_paths += engine_cfg.autoload_once_paths Rails.application.config.autoload_paths += engine_cfg.autoload_paths -- 2.39.5