class Rails::Initializable::Collection
Inherits From
-
class
Array
-
module
TSort
Public instance methods
Source code GitHub
# File railties/lib/rails/initializable.rb, line 53
def +(other)
Collection.new(to_a + other.to_a)
end
Source code GitHub
# File railties/lib/rails/initializable.rb, line 49
def tsort_each_child(initializer, &block)
select { |i| i.before == initializer.name || i.name == initializer.after }.each(&block)
end