Skip to content

Instantly share code, notes, and snippets.

@michael
Created January 13, 2010 19:54
Show Gist options
  • Save michael/276524 to your computer and use it in GitHub Desktop.
Save michael/276524 to your computer and use it in GitHub Desktop.
class Quote
include DataMapper::Resource
property :id, Serial
has 0..n, :billings, :through => Resource
end
class Billing
include DataMapper::Resource
property :id, Serial
has 0..n, :quotes, :through => Resource
end
# Why there's no BillingQuote constant?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment