summaryrefslogtreecommitdiffstats
path: root/lib/redmine/plugin.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-02-01 10:12:38 +0000
committerGo MAEDA <maeda@farend.jp>2019-02-01 10:12:38 +0000
commit0ed5992f4e2c7bd15c431a0afb9da15a753e6473 (patch)
tree98447102645e08677324dac3dd84777142d436b6 /lib/redmine/plugin.rb
parente90c06dbb332268a769d3350e27da3fdd5b99bae (diff)
downloadredmine-0ed5992f4e2c7bd15c431a0afb9da15a753e6473.tar.gz
redmine-0ed5992f4e2c7bd15c431a0afb9da15a753e6473.zip
Merged r17841 from trunk to 4.0-stable (#30725).
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17842 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r--lib/redmine/plugin.rb2
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