Sha256: 7111f391eb017b2a3bada9ae3efadad149ff201fae3bbf3fd15d6ca084e47927
Contents?: true
Size: 528 Bytes
Versions: 6
Compression:
Stored size: 528 Bytes
Contents
class PostalAddress < ActiveRecord::Base attr_protected :created_at, :updated_at has_contact belongs_to :geo_country belongs_to :geo_zone def summary_line "#{description} : #{address_line_1}, #{city}" end def to_label(&block) if block_given? block.call(self) else "#{description} : #{address_line_1}, #{city}" end end def zip_eql_to?(zip) self.zip.downcase.gsub(/[^a-zA-Z0-9]/, "")[0..4] == zip.to_s.downcase.gsub(/[^a-zA-Z0-9]/,"")[0..4] end end
Version data entries
6 entries across 6 versions & 1 rubygems