summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-12-10 03:34:16 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-12-10 03:34:16 +0000
commite6f2e3385684ba95167a6728c9df95413a841e06 (patch)
tree98723e59b2a7f6547b8b8b8ce17af96e84aa47ca /lib
parentac36333e90d9ae3386829afdb3b4c1d8bac172f5 (diff)
downloadredmine-e6f2e3385684ba95167a6728c9df95413a841e06.tar.gz
redmine-e6f2e3385684ba95167a6728c9df95413a841e06.zip
Allows configure plugins directory path in order to change the default location in test environment (#36320).
Patch by @tohosaku. git-svn-id: https://svn.redmine.org/redmine/trunk@22507 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/plugin_loader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/plugin_loader.rb b/lib/redmine/plugin_loader.rb
index 135df09ba..04d7e4af0 100644
--- a/lib/redmine/plugin_loader.rb
+++ b/lib/redmine/plugin_loader.rb
@@ -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_plugin_directory
# Absolute path to the public directory where plugins assets are copied
cattr_accessor :public_directory