summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-10 12:05:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-10 12:05:26 +0000
commit68047fde6f768ab2be5b8e7f2f2453591d0a2e97 (patch)
tree23dde51b3e52b69cdcbccbb0631aa9179166c89c /config/routes.rb
parentd66dc72d690d5bf7597a79c05659d0c58b2b2d06 (diff)
downloadredmine-68047fde6f768ab2be5b8e7f2f2453591d0a2e97.tar.gz
redmine-68047fde6f768ab2be5b8e7f2f2453591d0a2e97.zip
Plugin directory is configurable (#24007).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16654 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ae7c6c98a..22fc44a4f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -378,7 +378,7 @@ Rails.application.routes.draw do
get 'robots.txt', :to => 'welcome#robots'
- Dir.glob File.expand_path("plugins/*", Rails.root) do |plugin_dir|
+ Dir.glob File.expand_path("#{Redmine::Plugin.directory}/*", Rails.root) do |plugin_dir|
file = File.join(plugin_dir, "config/routes.rb")
if File.exists?(file)
begin