Sha256: 379b313bab0c911d315149831cccabd19389ea91d175b313d15f4d2ec61bdc2b

Contents?: true

Size: 484 Bytes

Versions: 47

Compression:

Stored size: 484 Bytes

Contents

class Invoice < CouchRest::ExtendedDocument  
  # Include the validation module to get access to the validation methods
  include CouchRest::Validation
  
  # Set the default database to use
  use_database TEST_SERVER.default_database
  
  # Official Schema
  property :client_name
  property :employee_name
  property :location
  
  # Validation
  validates_present :client_name, :employee_name
  validates_present :location, :message => "Hey stupid!, you forgot the location"
  
end

Version data entries

47 entries across 47 versions & 16 rubygems

Version Path
brianmario-couchrest-0.23 spec/fixtures/more/invoice.rb
gbuesing-couchrest-0.23 spec/fixtures/more/invoice.rb
glasner-couchrest-0.2.2 spec/fixtures/more/invoice.rb
gohanlonllc-couchrest-0.2.3.1 spec/fixtures/more/invoice.rb
halfninja-couchrest-0.23.2 spec/fixtures/more/invoice.rb
halfninja-couchrest-0.23.3 spec/fixtures/more/invoice.rb
jchris-couchrest-0.16 spec/fixtures/more/invoice.rb
jchris-couchrest-0.17.0 spec/fixtures/more/invoice.rb
jchris-couchrest-0.2.1 spec/fixtures/more/invoice.rb
jchris-couchrest-0.2.2 spec/fixtures/more/invoice.rb
jchris-couchrest-0.2 spec/fixtures/more/invoice.rb
jchris-couchrest-0.22 spec/fixtures/more/invoice.rb
jchris-couchrest-0.23 spec/fixtures/more/invoice.rb
jkestr-couchrest-0.23 spec/fixtures/more/invoice.rb
jpbougie-couchrest-0.27 spec/fixtures/more/invoice.rb
jrun-couchrest-0.17.1 spec/fixtures/more/invoice.rb
jrun-couchrest-0.2.1.1 spec/fixtures/more/invoice.rb
jrun-couchrest-0.2.1 spec/fixtures/more/invoice.rb
mattetti-couchrest-0.13.1 spec/fixtures/more/invoice.rb
mattetti-couchrest-0.13.2 spec/fixtures/more/invoice.rb