Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use tsort_each to avoid intermediary array

  • Loading branch information...
commit 25f1d5da37811644c81127e9219fc070953776e0 1 parent ad95a61
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/initializable.rb
View
2  railties/lib/rails/initializable.rb
@@ -51,7 +51,7 @@ def +(other)
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
Please sign in to comment.
Something went wrong with that request. Please try again.