Sha256: aa01085056a69bc7c02570457897e148194087c9e2173de30323f81aa460b0f3

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

# don't know exactly
class DataSource < ActiveRecordShared

	acts_as_list
	default_scope :order => :position

	acts_like_a_hash

	validates_length_of     :data_origin,
		:other_organization, :other_person,
		: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/data_source.rb