Sha256: 6c0c3d52c3a7cf7f089f963fe2e3cdd8d7f5e02db0f4196077b9b2f645832b4f

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

#	==	requires
#	*	key ( unique )
#	*	description ( unique and > 3 chars )
#	*	interview_type_id
class InstrumentVersion < ActiveRecordShared

	acts_as_list
	default_scope :order => :position

	acts_like_a_hash

	belongs_to :language
	belongs_to :instrument_type
	belongs_to :instrument
	has_many :interviews

	validates_presence_of   :instrument_type_id
	validates_presence_of   :instrument_type, :if => :instrument_type_id

	validates_complete_date_for :began_use_on, :allow_nil => true
	validates_complete_date_for :ended_use_on, :allow_nil => true

	#	Returns description
	def to_s
		description
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccls-ccls_engine-3.11.0 app/models/instrument_version.rb