This removes the loaded_child and assert_loaded_otherwise_failed methods of EagerLoadChildrenOfType and insteads calls those through a new trait called Association. That trait is implemented for each type of association. Will reduce some boilerplate in handwritten implementations.
This removes the
loaded_child
andassert_loaded_otherwise_failed
methods ofEagerLoadChildrenOfType
and insteads calls those through a new trait calledAssociation
. That trait is implemented for each type of association. Will reduce some boilerplate in handwritten implementations.