Sha256: e5ca0f32698570ef06f141369c4ac08ec7e4a8fc3326e2bd78f4bf6652f3eb5e

Contents?: true

Size: 327 Bytes

Versions: 4

Compression:

Stored size: 327 Bytes

Contents

class Parent
  include Ripple::Document
  one :child
  validates_associated :child
end

class Child
  include Ripple::EmbeddedDocument
  property :name, String, :presence => true
  property :age, Integer, :presence => true
  one :gchild, :class_name => 'Grandchild'
end

class Grandchild
  include Ripple::EmbeddedDocument
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
wyngle-ripple-0.1.0 spec/support/models/family.rb
ripple-1.0.0.beta2 spec/support/models/family.rb
seomoz-ripple-1.0.0.pre spec/support/models/family.rb
ripple-1.0.0.beta spec/support/models/family.rb