It would be awesome if dm-is-tree was compatible with dm-constraints!
I was able to add a constraint to protect nodes with children by repeating the children relationship like this:
is :tree
has n, :children, :model => self, :child_key => :parent_id, :constraint => :protect
However, it would be much more convenient if one could simply say:
It would be awesome if dm-is-tree was compatible with dm-constraints! I was able to add a constraint to protect nodes with children by repeating the children relationship like this:
However, it would be much more convenient if one could simply say: