Sha256: d055c172b44b300eea31f49b370dcb06eab70e034911901b11031e87dc7ba2ad

Contents?: true

Size: 411 Bytes

Versions: 8

Compression:

Stored size: 411 Bytes

Contents

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

		# Add Paper Trail
		has_paper_trail
    
		# Model Relationship
		belongs_to :business, class_name: 'Members::Business'
		belongs_to :category, class_name: 'Directory::Category'

		# Validation for Form Fields
		validates :business_id,
			presence: true

		# Validation for Form Fields
		validates :category_id,
			presence: true

	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phcmemberspro-6.8.10 app/models/phcmemberspro/directory/listing.rb
phcmemberspro-6.8.9 app/models/phcmemberspro/directory/listing.rb
phcmemberspro-6.8.8 app/models/phcmemberspro/directory/listing.rb
phcmemberspro-6.8.7 app/models/phcmemberspro/directory/listing.rb
phcmemberspro-6.8.6 app/models/phcmemberspro/directory/listing.rb
phcmemberspro-6.8.5 app/models/phcmemberspro/directory/listing.rb
phcmemberspro-6.8.4 app/models/phcmemberspro/directory/listing.rb
phcmemberspro-6.8.3 app/models/phcmemberspro/directory/listing.rb