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-2.2.0 app/models/phcmembers/directory/catlist.rb
phcmembers-2.1.3 app/models/phcmembers/directory/catlist.rb
phcmembers-2.1.2 app/models/phcmembers/directory/catlist.rb
phcmembers-2.1.1 app/models/phcmembers/directory/catlist.rb
phcmembers-2.1.0 app/models/phcmembers/directory/catlist.rb
phcmembers-2.0.0 app/models/phcmembers/directory/catlist.rb
phcmembers-1.9.9 app/models/phcmembers/directory/catlist.rb
phcmembers-1.9.5 app/models/phcmembers/directory/catlist.rb
phcmembers-1.9.0 app/models/phcmembers/directory/catlist.rb
phcmembers-1.8.1 app/models/phcmembers/directory/catlist.rb
phcmembers-1.8.0 app/models/phcmembers/directory/catlist.rb
phcmembers-1.7.8 app/models/phcmembers/directory/catlist.rb
phcmembers-1.7.6 app/models/phcmembers/directory/catlist.rb
phcmembers-1.7.5 app/models/phcmembers/directory/catlist.rb
phcmembers-1.7.0 app/models/phcmembers/directory/catlist.rb
phcmembers-1.6.0 app/models/phcmembers/directory/catlist.rb
phcmembers-1.5.0 app/models/phcmembers/directory/catlist.rb
phcmembers-1.0.2 app/models/phcmembers/directory/catlist.rb
phcmembers-1.0.1 app/models/phcmembers/directory/catlist.rb
phcmembers-1.0.0 app/models/phcmembers/directory/catlist.rb