Sha256: 1a2be7c2f265ce34e8ca8799a92953c07cb3266d4ff37be2499f95ef1cf6154f

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

#	==	requires
#	*	description (unique and > 3 chars)
class IneligibleReason < ActiveRecordShared

	acts_as_list
	default_scope :order => :position

	acts_like_a_hash

	has_many :enrollments

	validates_length_of     :ineligible_context, 
		:maximum => 250, :allow_blank => true

	#	Returns description
	def to_s
		description
	end

	#	Returns boolean of comparison
	#	true only if key == 'other'
	def is_other?
		key == 'other'
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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