Sha256: b550e95052bfedbbe02b6c0cb492171b649734173ec83a901769cad4540e0f9a

Contents?: true

Size: 253 Bytes

Versions: 2

Compression:

Stored size: 253 Bytes

Contents

class Box
  include Ripple::Document
  property :shape, String
  many :sides, :class_name => 'BoxSide'
  validates_associated :sides
  timestamps!
end

class BoxSide
  include Ripple::EmbeddedDocument
  embedded_in :box
  property :material, String
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
wyngle-ripple-0.1.0 spec/support/models/box.rb
ripple-1.0.0.beta2 spec/support/models/box.rb