class ActiveRecord::Associations::JoinDependency::JoinPart

def each_children(&block)

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