Sha256: ce2a0b8bc8a2fa7109c67e7949b37c974c5cdb14b8b1190bd9627bd492336e7a
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
class Car include Ripple::Document property :make, String property :model, String one :driver # linked, key_on :name many :passengers # linked, standard :key one :engine # embedded many :seats # embedded many :wheels accepts_nested_attributes_for :driver, :passengers, :engine, :seats accepts_nested_attributes_for :wheels, :reject_if => proc{|attrs| attrs['diameter'] < 12 }, :allow_destroy => true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seomoz-ripple-1.0.0.pre | spec/support/models/car.rb |