Sha256: b939121f7012f225f4bb191440765384f8d8653443f054c978328ab8698fd91e

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

class DocumentType < ActiveRecordShared

	acts_as_list
	default_scope :order => :position

	has_many :document_versions

	validates_presence_of :title
	validates_length_of   :title,       :maximum => 250, :allow_blank => true
	validates_length_of   :description, :maximum => 250, :allow_blank => true

	def to_s
		title
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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