Fix order of loading plugins' config/routes.rb (#38707).

Patch by Nishida Yuya.


git-svn-id: https://svn.redmine.org/redmine/trunk@22327 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2023-10-06 06:10:23 +00:00
parent 1d88a2317d
commit d7189c02db

View File

@@ -404,7 +404,7 @@ Rails.application.routes.draw do
get 'robots', :to => 'welcome#robots'
Dir.glob File.expand_path("#{Redmine::Plugin.directory}/*") do |plugin_dir|
Dir.glob(File.expand_path("#{Redmine::Plugin.directory}/*")).sort.each do |plugin_dir|
file = File.join(plugin_dir, "config/routes.rb")
if File.exist?(file)
begin