aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorTobias Lütke <tobias.luetke@gmail.com>2007-05-22 19:09:32 +0000
committerTobias Lütke <tobias.luetke@gmail.com>2007-05-22 19:09:32 +0000
commit4611d0e1081713821053006061616d2baeb3e3ee (patch)
tree6247937566220433e0d31aa0dfa544ea1165dc11 /railties
parent43cd97e7fa7043246da7129520ba8b69fbaea82e (diff)
downloadrails-4611d0e1081713821053006061616d2baeb3e3ee.tar.gz
rails-4611d0e1081713821053006061616d2baeb3e3ee.tar.bz2
rails-4611d0e1081713821053006061616d2baeb3e3ee.zip
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
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/initializer.rb2
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