diff options
author | Go MAEDA <maeda@farend.jp> | 2019-02-01 09:03:53 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-02-01 09:03:53 +0000 |
commit | f65f1d37bfa35bd27c8da1697dac24e2ef9f70c2 (patch) | |
tree | c5b3d63fcdb240ed03d1bcd80e50338f8cc0acc7 /lib/redmine/plugin.rb | |
parent | 7ca65bedc03f6e2ed367afb83152bf27e9065284 (diff) | |
download | redmine-f65f1d37bfa35bd27c8da1697dac24e2ef9f70c2.tar.gz redmine-f65f1d37bfa35bd27c8da1697dac24e2ef9f70c2.zip |
Plugin eager_load should depend on environment setting instead of name (#30725).
Patch by Florian Schwab.
git-svn-id: http://svn.redmine.org/redmine/trunk@17841 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r-- | lib/redmine/plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index c000e5429..4de7c4386 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -110,7 +110,7 @@ module Redmine # Adds the app/{controllers,helpers,models} directories of the plugin to the autoload path Dir.glob File.expand_path(File.join(p.directory, 'app', '{controllers,helpers,models}')) do |dir| ActiveSupport::Dependencies.autoload_paths += [dir] - Rails.application.config.eager_load_paths += [dir] if Rails.env == 'production' + Rails.application.config.eager_load_paths += [dir] if Rails.application.config.eager_load end # Defines plugin setting if present |