spec/support/models/car.rb in ripple-0.9.5 vs spec/support/models/car.rb in ripple-1.0.0.beta

- old
+ new

@@ -1,7 +1,33 @@ +class Driver + include Ripple::Document + property :name, String + key_on :name +end + +class Passenger + include Ripple::Document + property :name, String +end + +class Engine + include Ripple::EmbeddedDocument + property :displacement, String +end + +class Wheel + include Ripple::Document + property :diameter, Integer +end + +class Seat + include Ripple::EmbeddedDocument + property :color, String +end + class Car include Ripple::Document - + property :make, String property :model, String one :driver # linked, key_on :name many :passengers # linked, standard :key