diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-04-08 13:45:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-04-08 13:45:27 +0000 |
commit | 784b9f4aca932e922d356dd858b91795e93f80c2 (patch) | |
tree | a042104765fbb2a54307cb1484d77392e42b4aca /lib | |
parent | af2730de5e580d98e31e3372098b757fee5a7810 (diff) | |
download | redmine-784b9f4aca932e922d356dd858b91795e93f80c2.tar.gz redmine-784b9f4aca932e922d356dd858b91795e93f80c2.zip |
Rails 5: "Page not found" error when accessing a page of a plugin in production mode (#26636).
Patch by Akiko Takano.
git-svn-id: http://svn.redmine.org/redmine/trunk@17293 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-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 |