Sha256: 670b61de59be8400a6be60efd6243549b759065dbc3150c885e8489e84a86363
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
class BcRequest < ActiveRecordShared belongs_to :study_subject attr_protected :study_subject_id, :study_subject validates_length_of :request_type, :maximum => 250, :allow_blank => true validates_length_of :status, :maximum => 250, :allow_blank => true validates_length_of :notes, :maximum => 65000, :allow_blank => true # validates_inclusion_of :status, :in => statuses def self.statuses %w( active waitlist pending complete ) end def to_s ( study_subject ) ? study_subject.studyid : self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | app/models/bc_request.rb |