diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/initializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 0a6d7a1341..c34dbcdc5b 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -336,7 +336,7 @@ module Rails end def load_application_initializers - Dir["#{configuration.root_path}/config/initializers/**/*.rb"].each do |initializer| + Dir["#{configuration.root_path}/config/initializers/**/*.rb"].sort.each do |initializer| load(initializer) end end |