1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Redmine::Plugin.directory is an absolute path (#24007).

git-svn-id: http://svn.redmine.org/redmine/trunk@16670 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-06-17 07:57:58 +00:00
parent 2407bcba29
commit 4120b59e10

View File

@ -378,7 +378,7 @@ Rails.application.routes.draw do
get 'robots.txt', :to => 'welcome#robots' 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") file = File.join(plugin_dir, "config/routes.rb")
if File.exists?(file) if File.exists?(file)
begin begin