Skip to content

Instantly share code, notes, and snippets.

@bkeepers
Created November 2, 2009 04:19
Show Gist options
  • Save bkeepers/223930 to your computer and use it in GitHub Desktop.
Save bkeepers/223930 to your computer and use it in GitHub Desktop.
class Address < DataMapper::Type
include DataMapper::Resource
property :address, String
property :city, String
property :state, String
property :zip, Integer
end
class User
include DataMapper::Resource
property :id, DataMapper::Mongo::Types::ObjectID
property :name, String
property :address, Address
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment