spec/models/country_code.rb in mongoid-eager-loading-0.2.0 vs spec/models/country_code.rb in mongoid-eager-loading-0.3.0
- old
+ new
@@ -1,6 +1,6 @@
class CountryCode
include Mongoid::Document
field :code, :type => Integer
key :code
- embedded_in :phone_number, :inverse_of => :country_codes
+ embedded_in :phone_number, :class_name => "Phone"
end