Sha256: 052ba92dfa88745de69abd757b0b4c1e8a3e2a8044c4de98e2574712c51fa067
Contents?: true
Size: 387 Bytes
Versions: 9
Compression:
Stored size: 387 Bytes
Contents
require File.join(FIXTURE_PATH, 'more', 'client') require File.join(FIXTURE_PATH, 'more', 'sale_entry') class SaleInvoice < CouchRest::Model::Base use_database DB belongs_to :client belongs_to :alternate_client, :class_name => 'Client', :foreign_key => 'alt_client_id' collection_of :entries, :class_name => 'SaleEntry' property :date, Date property :price, Integer end
Version data entries
9 entries across 9 versions & 2 rubygems