Sha256: 631a4cbe143bb16505a21f09c6ca609c3f7aab976c146a028c384069363e37c9

Contents?: true

Size: 346 Bytes

Versions: 23

Compression:

Stored size: 346 Bytes

Contents

class Cat < CouchRest::ExtendedDocument
  include ::CouchRest::Validation

  # Set the default database to use
  use_database DB

  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

23 entries across 23 versions & 6 rubygems

Version Path
mattetti-couchrest-0.28 spec/fixtures/more/cat.rb
mattetti-couchrest-0.29 spec/fixtures/more/cat.rb
mattetti-couchrest-0.30 spec/fixtures/more/cat.rb
mattetti-couchrest-0.31 spec/fixtures/more/cat.rb
mattetti-couchrest-0.32 spec/fixtures/more/cat.rb
mattetti-couchrest-0.33 spec/fixtures/more/cat.rb
norr-couchrest-0.30.1 spec/fixtures/more/cat.rb
norr-couchrest-0.30.2 spec/fixtures/more/cat.rb
norr-couchrest-0.30.3 spec/fixtures/more/cat.rb
norr-couchrest-0.30.4 spec/fixtures/more/cat.rb
norr-couchrest-0.30 spec/fixtures/more/cat.rb
norr-couchrest-0.33.01 spec/fixtures/more/cat.rb
norr-couchrest-0.33.02 spec/fixtures/more/cat.rb
oz-couchrest-0.29 spec/fixtures/more/cat.rb
peterpunk-couchrest-0.33 spec/fixtures/more/cat.rb
will-couchrest-0.32.1 spec/fixtures/more/cat.rb
will-couchrest-0.33.1 spec/fixtures/more/cat.rb
will-couchrest-0.33 spec/fixtures/more/cat.rb
couchrest-0.30 spec/fixtures/more/cat.rb
couchrest-0.31 spec/fixtures/more/cat.rb