diff --git a/config/routes.rb b/config/routes.rb index 22fc44a4f5aecfaec94cfbc82491a557af89def9..1483888987566d9ceb10829ef093219f91cbcea2 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