Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1.2.6) is shown here.
root()
public
Returns the root node of
the tree.
# File activerecord/lib/active_record/acts/tree.rb, line 75
def root
node = self
node = node.parent while node.parent
node
end