Module: MongoPopulator

Extended by:
Random
Defined in:
lib/mongo_populator.rb,
lib/mongo_populator/random.rb,
lib/mongo_populator/record.rb,
lib/mongo_populator/factory.rb,
lib/mongo_populator/mongo_skip.rb,
lib/mongo_populator/mongo_array.rb,
lib/mongo_populator/mongo_dictionary.rb,
lib/mongo_populator/collection_additions.rb

Overview

MongoPopulator is made up of several parts. To start, see MongoPopulator::ModelAdditions.

Defined Under Namespace

Modules: CollectionAdditions, Random Classes: Factory, MongoArray, MongoDictionary, MongoSkip, Record

Constant Summary

Constants included from Random

Random::WORDS

Class Method Summary collapse

Methods included from Random

array, dictionary, embed, interpret_value, items, paragraphs, sentences, skip, value_in_range, words

Class Method Details

.included(host_class) ⇒ Object

extend host class with class methods when we’re included



11
12
13
# File 'lib/mongo_populator/collection_additions.rb', line 11

def self.included(host_class)
  host_class.extend(CollectionAdditions)
end