Mongo Mapper

Defining documents

MongoMapper documents are the equivalent of models in ActiveRecord. An instantiated MongoMapper::Document class represents a single document in a MongoDB collection. It also provides a number of class methods used for querying the collection itself. You can embed documents inside other documents (rather than in their own collections) using the MongoMapper::EmbeddedDocument class.

Fork me on GitHub