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.229 app/models/caboose/address.rb
caboose-cms-1.0.2 app/models/caboose/address.rb
caboose-cms-1.0.1 app/models/caboose/address.rb
caboose-cms-0.9.228 app/models/caboose/address.rb
caboose-cms-0.9.227 app/models/caboose/address.rb
caboose-cms-0.9.226 app/models/caboose/address.rb
caboose-cms-0.9.225 app/models/caboose/address.rb
caboose-cms-0.9.224 app/models/caboose/address.rb
caboose-cms-0.9.223 app/models/caboose/address.rb
caboose-cms-0.9.222 app/models/caboose/address.rb
caboose-cms-0.9.221 app/models/caboose/address.rb
caboose-cms-0.9.220 app/models/caboose/address.rb
caboose-cms-0.9.219 app/models/caboose/address.rb
caboose-cms-0.9.218 app/models/caboose/address.rb
caboose-cms-0.9.217 app/models/caboose/address.rb
caboose-cms-0.9.216 app/models/caboose/address.rb
caboose-cms-0.9.215 app/models/caboose/address.rb
caboose-cms-0.9.214 app/models/caboose/address.rb
caboose-cms-0.9.213 app/models/caboose/address.rb
caboose-cms-0.9.212 app/models/caboose/address.rb