Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment