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

Version Path
caboose-cms-0.9.190 app/models/caboose/address.rb
caboose-cms-0.9.189 app/models/caboose/address.rb
caboose-cms-0.9.188 app/models/caboose/address.rb
caboose-cms-0.9.187 app/models/caboose/address.rb
caboose-cms-0.9.186 app/models/caboose/address.rb
caboose-cms-0.9.185 app/models/caboose/address.rb
caboose-cms-0.9.184 app/models/caboose/address.rb
caboose-cms-0.9.183 app/models/caboose/address.rb
caboose-cms-0.9.182 app/models/caboose/address.rb
caboose-cms-0.9.181 app/models/caboose/address.rb
caboose-cms-0.9.180 app/models/caboose/address.rb
caboose-cms-0.9.179 app/models/caboose/address.rb
caboose-cms-0.9.178 app/models/caboose/address.rb
caboose-cms-0.9.177 app/models/caboose/address.rb
caboose-cms-0.9.176 app/models/caboose/address.rb
caboose-cms-0.9.175 app/models/caboose/address.rb
caboose-cms-0.9.174 app/models/caboose/address.rb
caboose-cms-0.9.173 app/models/caboose/address.rb
caboose-cms-0.9.172 app/models/caboose/address.rb
caboose-cms-0.9.171 app/models/caboose/address.rb