closure_tree
closure_tree copied to clipboard
Adopt orphan nodes when parent is destroyed
Ancestry has an interesting feature named "orphean_strategy". Is it possible to replicated their "adopt" strategy when parent node is destroyed ?
:adopt The orphan subtree is added to the parent of the deleted node.
If the deleted node is Root, then rootify the orphan subtree.
Can you send a PR with this feature ?
I found that in closed issues : https://github.com/mceachen/closure_tree/issues/98 Looks like the decision to not implement this feature has already been taken by the past, don't it ?
No, it just need to be a good implementation.
+1 for "orphanize" strategy on node deletion