From 68047fde6f768ab2be5b8e7f2f2453591d0a2e97 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 10 Jun 2017 12:05:26 +0000 Subject: [PATCH] Plugin directory is configurable (#24007). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16654 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5