diff options
-rw-r--r-- | lib/redmine/plugin.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 7f058a31d..ad42980e1 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -93,6 +93,7 @@ module Redmine #:nodoc: # 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' end # Defines plugin setting if present |