spec/fixtures/more/cat.rb in peterpunk-couchrest-0.33 vs spec/fixtures/more/cat.rb in peterpunk-couchrest-0.34.1
- old
+ new
@@ -4,9 +4,10 @@
# Set the default database to use
use_database DB
property :name
property :toys, :cast_as => ['CatToy'], :default => []
+ property :favorite_toy, :cast_as => 'CatToy'
end
class CatToy < Hash
include ::CouchRest::CastedModel
include ::CouchRest::Validation
\ No newline at end of file