Module: MongoMapper::Acts::Tree::ClassMethods

Defined in:
lib/mongo_mapper_acts_as_tree.rb

Instance Method Summary collapse

Instance Method Details

#rootsObject



39
40
41
# File 'lib/mongo_mapper_acts_as_tree.rb', line 39

def roots
  self.all(parent_id_field => nil, :order => tree_order)
end