Is there a technique/method that tells whether an object has a child or many children or no children?
for example
parent has_many :children_1 parent has_many :children_2
Given the parent, how do I get the two collections of children?
Is there a technique/method that tells whether an object has a child or many children or no children?
for example
parent has_many :children_1 parent has_many :children_2
Given the parent, how do I get the two collections of children?