app/models/address.rb in artfully_ose-1.2.0.pre.15 vs app/models/address.rb in artfully_ose-1.2.0.pre.16

- old
+ new

@@ -33,10 +33,10 @@ def self.from_payment(payment) payment.try(:customer).try(:address) end def self.unhash(address) - (address.is_a? Hash) ? Address.new(address) : address + (address.is_a? Hash) ? Address.new(address.except(:id, :created_at, :updated_at, :old_mongo_id)) : address end def self.find_or_create(pers_id) #refactor to first_or_initialize when Rails 3.2 where(:person_id => pers_id).first || Address.create(:person_id => pers_id)