Sha256: 206085b89c2d714777237c482827175729165baceffec908c22a944de758af04

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

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

		# Mount PHCEngine
		belongs_to :user, :class_name => "Phcengine::User"

		# 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

4 entries across 4 versions & 1 rubygems

Version Path
phcmemberspro-1.6.5 app/models/phcmemberspro/directory/catlist.rb
phcmemberspro-1.6.3 app/models/phcmemberspro/directory/catlist.rb
phcmemberspro-1.6.1 app/models/phcmemberspro/directory/catlist.rb
phcmemberspro-1.6.0 app/models/phcmemberspro/directory/catlist.rb