diff options
author | Go MAEDA <maeda@farend.jp> | 2023-10-06 06:10:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-10-06 06:10:23 +0000 |
commit | d7189c02dbdb08105a10026425266ed80465cc4e (patch) | |
tree | 03c81189ac1f591d57b16e3a2813706e7ff20b42 /config/routes.rb | |
parent | 1d88a2317d767ebd1608b483c040ad3549cd82f7 (diff) | |
download | redmine-d7189c02dbdb08105a10026425266ed80465cc4e.tar.gz redmine-d7189c02dbdb08105a10026425266ed80465cc4e.zip |
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
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 00eadf679..3bc012a3e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 |