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

Version Path
couchrest_model-1.1.0.rc1 spec/fixtures/more/sale_invoice.rb
couchrest_model-1.1.0.beta5 spec/fixtures/more/sale_invoice.rb
couchrest_model-1.1.0.beta4 spec/fixtures/more/sale_invoice.rb
couchrest_model-1.1.0.beta3 spec/fixtures/more/sale_invoice.rb
couchrest_model-1.1.0.beta2 spec/fixtures/more/sale_invoice.rb
couchrest_model-1.1.0.beta spec/fixtures/more/sale_invoice.rb
couchrest_model-1.0.0 spec/fixtures/more/sale_invoice.rb
couchrest_model-radiant-1.0.0 spec/fixtures/more/sale_invoice.rb
couchrest_model-1.0.0.beta8 spec/fixtures/more/sale_invoice.rb