acts_as_tree

If you have orphaned nodes, how do you know which one is root?

> For my app, I needed to modify acts_as_tree (ActiveRecord::Acts::Tree) > such that deleting a node would orphan sub-nodes, rather than deleting > them.

If you have orphaned nodes, how do you know which one is root?

The whole point is that I want to be able to represent multiple trees, not just one. There already is a method "roots" that works just fine when there are such orphaned nodes. The method "root" ceases really to have meaning, but that's fine.