spec/models/pet_owner.rb in mongoid-pre-2.0.0.beta1 vs spec/models/pet_owner.rb in mongoid-pre-2.0.0.pre
- old
+ new
@@ -1,6 +1,6 @@
class PetOwner
include Mongoid::Document
field :title
- embeds_one :pet
- embeds_one :address
-end
+ has_one :pet
+ has_one :address
+end
\ No newline at end of file