Module: MongoTree::Strategies::AncestorArray::ClassMethods

Defined in:
lib/mongo_tree/strategies/ancestor_array.rb

Instance Method Summary collapse

Instance Method Details

#rootsObject



26
27
28
# File 'lib/mongo_tree/strategies/ancestor_array.rb', line 26

def roots
  self.all(:parent_id => nil)
end