Sha256: d4dea52007d5e1b9a1aa8b03779f1aa0f322c3c5a365470443be9c15f91dad99
Contents?: true
Size: 507 Bytes
Versions: 3
Compression:
Stored size: 507 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 DB # 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
mattetti-couchrest-0.28 | spec/fixtures/more/card.rb |
mattetti-couchrest-0.29 | spec/fixtures/more/card.rb |
couchrest-0.28 | spec/fixtures/more/card.rb |