Sha256: d749cf6a359d49933eda6013c1ee70c1f1ea3cca339a2a3f3bce3ef301a9daf3
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
class Instrument < ActiveRecordShared acts_as_list default_scope :order => :position acts_like_a_hash belongs_to :project belongs_to :interview_method has_many :instrument_versions validates_presence_of :project_id validates_presence_of :project, :if => :project_id validates_presence_of :name validates_length_of :name, :maximum => 250, :allow_blank => true validates_complete_date_for :began_use_on, :allow_nil => true validates_complete_date_for :ended_use_on, :allow_nil => true # Return name def to_s name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | app/models/instrument.rb |