How do I get all the children of an object's child objects?
Sorry for the confusing title, I wasn't sure how to say it. But I have a class User
that has a lot projects
. And the class Project
has a lot wbs_items
. So how do I get all wbs_items
that belongs to all projects
belonging to the same user?
Ideally I would do:
current_user.projects.wbs_items
But that won't work.
+3
source to share
3 answers