method

build_children

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Branch
build_children(children) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/preloader/branch.rb, line 120
          def build_children(children)
            Array.wrap(children).flat_map { |association|
              Array(association).flat_map { |parent, child|
                Branch.new(
                  parent: self,
                  association: parent,
                  children: child,
                  associate_by_default: associate_by_default,
                  scope: scope
                )
              }
            }
          end
Register or log in to add new notes.