Sha256: 9a856aa8ad40354a488d2d7935ce740f98491edb22f4f256224c4980e6dd2ab9

Contents?: true

Size: 404 Bytes

Versions: 15

Compression:

Stored size: 404 Bytes

Contents

module Phcmembers
	class Member::Listing < ApplicationRecord

		# Add Paper Trail
		has_paper_trail

		# Model Relationships
		belongs_to :profile, class_name: 'Phcmembers::Member::Profile'
		has_many :categorylistings, class_name: 'Phcmembers::Directory::Categorylisting', dependent: :destroy
		has_many :categories, class_name: 'Phcmembers::Directory::Category', :through => :categorylistings

	end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
phcmembers-8.1.2 app/models/phcmembers/member/listing.rb
phcmembers-8.1.1 app/models/phcmembers/member/listing.rb
phcmembers-8.1.0 app/models/phcmembers/member/listing.rb
phcmembers-8.0.3 app/models/phcmembers/member/listing.rb
phcmembers-8.0.2 app/models/phcmembers/member/listing.rb
phcmembers-8.0.1 app/models/phcmembers/member/listing.rb
phcmembers-8.0.0 app/models/phcmembers/member/listing.rb
phcmembers-7.0.3 app/models/phcmembers/member/listing.rb
phcmembers-7.0.2 app/models/phcmembers/member/listing.rb
phcmembers-7.0.1 app/models/phcmembers/member/listing.rb
phcmembers-7.0.0 app/models/phcmembers/member/listing.rb
phcmembers-6.7.5 app/models/phcmembers/member/listing.rb
phcmembers-6.7.4 app/models/phcmembers/member/listing.rb
phcmembers-6.7.3 app/models/phcmembers/member/listing.rb
phcmembers-6.7.2 app/models/phcmembers/member/listing.rb