Sha256: a94d7630986e3121200668365b7cd9f55023a01ec86c2f58babf58bd76ccbe2d

Contents?: true

Size: 410 Bytes

Versions: 28

Compression:

Stored size: 410 Bytes

Contents

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

		# Model Relationship
		belongs_to :category, class_name: 'Directory::Category'
		belongs_to :listing, class_name: 'Members::Listing'

		# Validation for Form Fields (More of a Self-Check)
		validates :listing_id, 
			presence: true

		# Validation for Form Fields (More of a Self-Check)
		validates :category_id, 
			presence: true

	end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
phcmembers-0.9.8 app/models/phcmembers/directory/catlist.rb
phcmembers-0.9.7 app/models/phcmembers/directory/catlist.rb
phcmembers-0.8.0 app/models/phcmembers/directory/catlist.rb
phcmembers-0.6.2 app/models/phcmembers/directory/catlist.rb
phcmembers-0.6.1 app/models/phcmembers/directory/catlist.rb
phcmembers-0.6.0 app/models/phcmembers/directory/catlist.rb
phcmembers-0.5.9 app/models/phcmembers/directory/catlist.rb
phcmembers-0.5.8 app/models/phcmembers/directory/catlist.rb