Sha256: 7dabb7d13a98c8faca8f7db7f258249869e1484e57fdc00d3c2800016a81faf8
Contents?: true
Size: 372 Bytes
Versions: 5
Compression:
Stored size: 372 Bytes
Contents
class Cat < CouchRest::ExtendedDocument include ::CouchRest::Validation # Set the default database to use use_database TEST_SERVER.default_database property :name property :toys, :cast_as => ['CatToy'], :default => [] end class CatToy < Hash include ::CouchRest::CastedModel include ::CouchRest::Validation property :name validates_present :name end
Version data entries
5 entries across 5 versions & 3 rubygems