Commit 0d980c92 authored by jplang's avatar jplang
Browse files

Add plugin lib directory to rails autoload paths (#30753).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2906be84
......@@ -111,6 +111,7 @@ module Redmine
# Add the plugin directories to rails autoload paths
engine_cfg =
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment