app/models/addresses/address.rb in addresses-1.0.2 vs app/models/addresses/address.rb in addresses-1.0.3

- old
+ new

@@ -4,9 +4,11 @@ belongs_to :addressable, polymorphic: true validates :zipcode_id, :number, presence: true delegate :street, :neighborhood, :city, to: :zipcode + accepts_nested_attributes_for :zipcode, allow_destroy: false + def to_s "#{self.street}, #{self.number}, #{self.neighborhood.name}. #{self.city.name} - #{self.city.state.acronym}" end end end