Module: ActsAsOrderedTree::ClassMethods::ClassMethods

Defined in:
lib/acts_as_ordered_tree/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#rootObject

Returns the first root


21
22
23
# File 'lib/acts_as_ordered_tree/class_methods.rb', line 21

def root
  roots.first
end