Sha256: 46bd2fd07e8c79c0cdf6f47ffef7e7848008778e26f04e7a3827add55f79405f
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
# don't know exactly class Person < ActiveRecordShared acts_as_list default_scope :order => :position # belongs_to :context has_many :interviews, :foreign_key => 'interviewer_id' has_many :organizations validates_presence_of :last_name validates_length_of :first_name, :maximum => 250, :allow_blank => true validates_length_of :last_name, :maximum => 250, :allow_blank => true validates_length_of :honorific, :maximum => 250, :allow_blank => true named_scope :interviewers, :conditions => { :person_type_id => 3 } # Returns string containing first and last name def full_name "#{first_name} #{last_name}" end # Returns full_name def to_s full_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | app/models/person.rb |