Module: MongoPopulator::CollectionAdditions

Defined in:
lib/mongo_populator/collection_additions.rb

Instance Method Summary collapse

Instance Method Details

#populate(amount, &block) ⇒ Object

Populate a Mongo::Collection with data



5
6
7
# File 'lib/mongo_populator/collection_additions.rb', line 5

def populate(amount, &block)
  Factory.for_collection(self).populate(amount, &block)
end