Sha256: 2c666a26b307316aa9c2e2b6b07ff7580a4fe1081adb148540706c8f455854cb
Contents?: true
Size: 458 Bytes
Versions: 31
Compression:
Stored size: 458 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 DB # 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
31 entries across 31 versions & 7 rubygems