Skip to content

Instantly share code, notes, and snippets.

@yannski
Created June 18, 2010 14:43
Show Gist options
  • Save yannski/443726 to your computer and use it in GitHub Desktop.
Save yannski/443726 to your computer and use it in GitHub Desktop.
class Person
include MongoMapper::Document
key :name
key :number, Integer
many :phones
...
end
class Phone
include MongoMapper::EmbeddedDocument
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment