Sha256: 1352c5d436aaa1574927dfc86cc99ce00a306e55aced2ee680ab8db22527a2ba

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

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

	acts_as_list
	default_scope :order => :position

	acts_like_a_hash

	has_many :units
#	has_many :people

	has_many :context_data_sources
	has_many :data_sources, :through => :context_data_sources

	validates_length_of :notes, :maximum => 65000, :allow_blank => 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/context.rb