Module: MongoScope::CollMethods

Included in:
ScopedCollection
Defined in:
lib/mongo_scope.rb

Instance Method Summary collapse

Instance Method Details

#countObject



37
38
39
# File 'lib/mongo_scope.rb', line 37

def count
  find.count
end

#to_scopedObject



40
41
42
# File 'lib/mongo_scope.rb', line 40

def to_scoped
  MongoScope::ScopedCollection.new(nil,self)
end