From 4120b59e10241e9910cacd7c78124ffc10426d96 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 17 Jun 2017 07:57:58 +0000 Subject: [PATCH] Redmine::Plugin.directory is an absolute path (#24007). git-svn-id: http://svn.redmine.org/redmine/trunk@16670 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 22fc44a4f..148388898 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("#{Redmine::Plugin.directory}/*", Rails.root) do |plugin_dir| + Dir.glob File.expand_path("#{Redmine::Plugin.directory}/*") do |plugin_dir| file = File.join(plugin_dir, "config/routes.rb") if File.exists?(file) begin -- 2.39.5