Module: Cubicle::MongoMapper::AggregatePlugin::ClassMethods

Defined in:
lib/cubicle/mongo_mapper/aggregate_plugin.rb

Instance Method Summary collapse

Instance Method Details

#aggregate(&block) ⇒ Object



5
6
7
# File 'lib/cubicle/mongo_mapper/aggregate_plugin.rb', line 5

def aggregate(&block)
  return Cubicle::Aggregation::AdHoc.new(self.collection_name,&block)
end