closure_tree
closure_tree copied to clipboard
Is there a way to copy the tree structure from one model to another?
I have two related models that are using closure tree to handle the hierarchy. Machines Inspections and a Machine has_many inspections.
I'm trying to work out a way that given a couple of Machine trees, I can create Inspections related to these Machines and copy over the tree structure so that inspections are mirroring the tree structure of machines independently.
Any guidance is most appreciated!