method
root
v1.1.6 -
Show latest stable
- Class:
ActiveRecord::Acts::Tree::InstanceMethods
root()public
No documentation available.
# File activerecord/lib/active_record/acts/tree.rb, line 75
def root
node = self
node = node.parent until not node.has_parent?
node
end