Sha256: 161d8b341322f43f57ee4de6cb8b4862c02c455f043db05f5315852391f78d03
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
class Venue < ActiveRecord::Base belongs_to :organization belongs_to :event validates_presence_of :name attr_accessible :name, :address1, :address2, :city, :state, :zip, :time_zone def street_as_string str = (address1 || "") + " " + (address2 || "") str.strip end def city_state_zip_as_string str = (city || "") + " " + (state || "") + " " + (zip || "") str.strip end def address_as_url_query URI::escape(street_as_string + " " + city_state_zip_as_string) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
artfully_ose-1.0.0.rc4 | app/models/venue.rb |
artfully_ose-1.0.0.rc3 | app/models/venue.rb |