Sha256: b15e3a3141e3ccc2589a791db9191fd61c868302a9f0203b78b6e89f5c8754ac
Contents?: true
Size: 840 Bytes
Versions: 4
Compression:
Stored size: 840 Bytes
Contents
class CommunicationEvent < ActiveRecord::Base belongs_to :from_party, :class_name => 'Party', :foreign_key => 'party_id_from' belongs_to :to_party , :class_name => 'Party', :foreign_key => 'party_id_to' belongs_to :from_role , :class_name => 'RoleType', :foreign_key => 'role_type_id_from' belongs_to :to_role , :class_name => 'RoleType', :foreign_key => 'role_type_id_to' belongs_to :comm_evt_status, :class_name => 'CommEvtStatus', :foreign_key => 'status_type_id' belongs_to :from_contact_mechanism, :polymorphic => true belongs_to :to_contact_mechanism, :polymorphic => true has_and_belongs_to_many :comm_evt_purpose_types, :join_table => 'comm_evt_purposes' validates_presence_of :from_role validates_presence_of :from_party def to_label "#{short_description}" end end
Version data entries
4 entries across 4 versions & 1 rubygems