spec/models/pet_owner.rb in mongoid-eager-loading-0.2.0 vs spec/models/pet_owner.rb in mongoid-eager-loading-0.3.0
- old
+ new
@@ -1,6 +1,6 @@
class PetOwner
include Mongoid::Document
field :title
embeds_one :pet
- embeds_one :address
+ embeds_one :address, :as => :addressable
end