# File lib/active_record/acts/tree.rb, line 74 def root node = self node = node.parent while node.parent node end