]> source.dussan.org Git - redmine.git/commitdiff
Merged r17841 from trunk to 4.0-stable (#30725).
authorGo MAEDA <maeda@farend.jp>
Fri, 1 Feb 2019 10:12:38 +0000 (10:12 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 1 Feb 2019 10:12:38 +0000 (10:12 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17842 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/plugin.rb

index c000e5429318ff1e6ef9c48e57558c728677470a..4de7c4386ae4208902ee4c7a5ee5fb4e7972ed5b 100644 (file)
@@ -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