spec/models/address.rb in mongoid-pre-2.0.0.beta1 vs spec/models/address.rb in mongoid-pre-2.0.0.pre

- old
+ new

@@ -7,13 +7,13 @@ field :state field :post_code field :parent_title field :services, :type => Array key :street - embeds_many :locations + has_many :locations - embedded_in :addressable, :inverse_of => :addresses do + belongs_to :addressable, :inverse_of => :addresses do def extension "Testing" end def doctor? title == "Dr" @@ -34,6 +34,6 @@ def homes where(:address_type => "Home") end end -end +end \ No newline at end of file