app/models/addresses/address.rb in addresses-1.0.8 vs app/models/addresses/address.rb in addresses-1.0.9

- old
+ new

@@ -8,9 +8,12 @@ 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}" + to_s = "#{street}, #{number}" + to_s += ", #{neighborhood.name}" if neighborhood + to_s += " - #{city.name}" if city + to_s += "/#{city.state.acronym}" if city && city.state end end end