Method: ActiveRecord::Associations::JoinDependency::JoinPart#each_children

Defined in:
activerecord/lib/active_record/associations/join_dependency/join_part.rb

#each_children(&block) ⇒ Object



36
37
38
39
40
41
# File 'activerecord/lib/active_record/associations/join_dependency/join_part.rb', line 36

def each_children(&block)
  children.each do |child|
    yield self, child
    child.each_children(&block)
  end
end