aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-03-30 20:13:46 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-03-30 20:14:08 -0700
commit25f1d5da37811644c81127e9219fc070953776e0 (patch)
tree3c5adae741d3e550f6d31ef7d59c3a8e7ccaa196 /railties
parentad95a61b62e70b839567c2e91e127fc2a1acb113 (diff)
downloadrails-25f1d5da37811644c81127e9219fc070953776e0.tar.gz
rails-25f1d5da37811644c81127e9219fc070953776e0.tar.bz2
rails-25f1d5da37811644c81127e9219fc070953776e0.zip
use tsort_each to avoid intermediary array
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/initializable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/initializable.rb b/railties/lib/rails/initializable.rb
index 04d5b55c69..a61673fab8 100644
--- a/railties/lib/rails/initializable.rb
+++ b/railties/lib/rails/initializable.rb
@@ -51,7 +51,7 @@ module Rails
def run_initializers(group=:default, *args)
return if instance_variable_defined?(:@ran)
- initializers.tsort.each do |initializer|
+ initializers.tsort_each do |initializer|
initializer.run(*args) if initializer.belongs_to?(group)
end
@ran = true