Sha256: 35e2e2a694ab9395bc2895405c64ad97d589de4c081e5ae0d68c0ec8715d84ad
Contents?: true
Size: 339 Bytes
Versions: 3
Compression:
Stored size: 339 Bytes
Contents
class EventVenue < ActiveRecord::Base has_many :events, :dependent => :nullify has_site if respond_to? :has_site validates_presence_of :title, :address default_scope :order => 'title asc' def to_s %{#{title}, #{address}} end def location address end def location=(location) address = location end end
Version data entries
3 entries across 3 versions & 1 rubygems