Adds test for plugin autoload issue (#36320, #39834).

Patch by @tohosaku.

git-svn-id: https://svn.redmine.org/redmine/trunk@22522 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2023-12-17 15:05:47 +00:00
parent 4cc0b8d2ca
commit e566e60e51
6 changed files with 47 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ module Redmine
class PluginLoader
# Absolute path to the directory where plugins are located
cattr_accessor :directory
self.directory = Rails.root.join('plugins')
self.directory = Rails.root.join Rails.application.config.redmine_plugins_directory
# Absolute path to the public directory where plugins assets are copied
cattr_accessor :public_directory