summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-17 07:57:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-17 07:57:58 +0000
commit4120b59e10241e9910cacd7c78124ffc10426d96 (patch)
treebbb6b467b4905eedec0247e0b250747b7ceb1d10 /config/routes.rb
parent2407bcba296b01b3416cae91d333ce956c8c11f0 (diff)
downloadredmine-4120b59e10241e9910cacd7c78124ffc10426d96.tar.gz
redmine-4120b59e10241e9910cacd7c78124ffc10426d96.zip
Redmine::Plugin.directory is an absolute path (#24007).
git-svn-id: http://svn.redmine.org/redmine/trunk@16670 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 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