Skip to content

Instantly share code, notes, and snippets.

@yannski
Created June 17, 2010 15:19
Show Gist options
  • Save yannski/442259 to your computer and use it in GitHub Desktop.
Save yannski/442259 to your computer and use it in GitHub Desktop.
class Person
include Mongoid::Document
field :name
field :number, Integer
embeds_many :phones
...
end
class Phone
include Mongoid::Document
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment