app/models/address.rb in reso-0.1.6.6 vs app/models/address.rb in reso-0.1.6.7
- old
+ new
@@ -1,8 +1,8 @@
class Address < ActiveRecord::Base
- belongs_to :address_type
- belongs_to :addressable, polymorphic: true
+ belongs_to :address_type, optional: true
+ belongs_to :addressable, polymorphic: true, optional: true
before_save :validate_and_sanitize_us_address
def address_concatenated
[self.full_street_address, self.city, self.state_or_province, self.postal_code].join(', ')