Sha256: 21a38b068ff160469be5e43472449d13b64d93801995b90743bbb35564b37da1

Contents?: true

Size: 533 Bytes

Versions: 47

Compression:

Stored size: 533 Bytes

Contents

class Card < CouchRest::ExtendedDocument  
  # Include the validation module to get access to the validation methods
  include CouchRest::Validation
  # set the auto_validation before defining the properties
  auto_validate!
  
  # Set the default database to use
  use_database TEST_SERVER.default_database
  
  # Official Schema
  property :first_name
  property :last_name,        :alias     => :family_name
  property :read_only_value,  :read_only => true
  
  timestamps!
  
  # Validation
  validates_present :first_name
  
end

Version data entries

47 entries across 47 versions & 16 rubygems

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