Sha256: 73fd265a93f3f13eafc563fadf8260a76ce3d39092c683c44b015b6a7e0ee795
Contents?: true
Size: 671 Bytes
Versions: 546
Compression:
Stored size: 671 Bytes
Contents
module Caboose class Address < ActiveRecord::Base self.table_name = 'store_addresses' attr_accessible :id, :name, :first_name, :last_name, :street, :address1, :address2, :company, :city, :state, :province, :province_code, :zip, :country, :country_code, :phone def name_and_address str = "#{self.first_name} #{self.last_name}" str << "<br />#{self.address1}" str << "<br />#{self.address2}" if self.address2 && self.address2.length > 0 str << "<br />#{self.city}, #{self.state} #{self.zip}" return str end end end
Version data entries
546 entries across 546 versions & 1 rubygems