Sha256: 37b7949773527258732f2f948cf945eb3fafa3269659371807b327d6a2bc413d
Contents?: true
Size: 583 Bytes
Versions: 28
Compression:
Stored size: 583 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 property :cast_alias, :cast_as => 'Person', :alias => :calias timestamps! # Validation validates_present :first_name end
Version data entries
28 entries across 28 versions & 7 rubygems