From 4611d0e1081713821053006061616d2baeb3e3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Tue, 22 May 2007 19:09:32 +0000 Subject: Initializers are now loaded consistently sorted by name. Closes #8343 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/initializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') 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 -- cgit v1.2.3