Sha256: e2b9361866bbad9f27a041de9d86d30e780250e27c2bbf099b393054b83f8e40

Contents?: true

Size: 276 Bytes

Versions: 28

Compression:

Stored size: 276 Bytes

Contents

module Phcmembers
	class Directory::Category < ActiveRecord::Base

		# Model Relationship
		has_many :catlists, class_name: 'Directory::Catlist'

		# Validation for Form Fields
		validates :catname, 
			presence: true,
			uniqueness: true,
			length: { minimum: 3 }

	end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
phcmembers-2.2.0 app/models/phcmembers/directory/category.rb
phcmembers-2.1.3 app/models/phcmembers/directory/category.rb
phcmembers-2.1.2 app/models/phcmembers/directory/category.rb
phcmembers-2.1.1 app/models/phcmembers/directory/category.rb
phcmembers-2.1.0 app/models/phcmembers/directory/category.rb
phcmembers-2.0.0 app/models/phcmembers/directory/category.rb
phcmembers-1.9.9 app/models/phcmembers/directory/category.rb
phcmembers-1.9.5 app/models/phcmembers/directory/category.rb
phcmembers-1.9.0 app/models/phcmembers/directory/category.rb
phcmembers-1.8.1 app/models/phcmembers/directory/category.rb
phcmembers-1.8.0 app/models/phcmembers/directory/category.rb
phcmembers-1.7.8 app/models/phcmembers/directory/category.rb
phcmembers-1.7.6 app/models/phcmembers/directory/category.rb
phcmembers-1.7.5 app/models/phcmembers/directory/category.rb
phcmembers-1.7.0 app/models/phcmembers/directory/category.rb
phcmembers-1.6.0 app/models/phcmembers/directory/category.rb
phcmembers-1.5.0 app/models/phcmembers/directory/category.rb
phcmembers-1.0.2 app/models/phcmembers/directory/category.rb
phcmembers-1.0.1 app/models/phcmembers/directory/category.rb
phcmembers-1.0.0 app/models/phcmembers/directory/category.rb