Skip to content

Commit

Permalink
Dir.glob result must be sorted
Browse files Browse the repository at this point in the history
Otherwise it is non-deterministic
  • Loading branch information
pboling committed Feb 23, 2023
1 parent ee6a7ba commit 40143bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/engines.md
Expand Up @@ -1090,7 +1090,7 @@ module MyApp
Rails.autoloaders.main.ignore(overrides)

config.to_prepare do
Dir.glob("#{overrides}/**/*_override.rb").each do |override|
Dir.glob("#{overrides}/**/*_override.rb").sort.each do |override|
load override
end
end
Expand Down

0 comments on commit 40143bf

Please sign in to comment.