Sha256: be74a2b2206b9eab3176ff87044f7aabe690cc19bee825640ad1e6b7b0285601

Contents?: true

Size: 338 Bytes

Versions: 53

Compression:

Stored size: 338 Bytes

Contents

module Phcmembers
	class Directory::Category < ApplicationRecord

		# Add Paper Trail
		has_paper_trail

		# Model Relationships
		has_many :categorylistings, class_name: 'Phcmembers::Directory::Categorylisting', dependent: :destroy
		has_many :listings, class_name: 'Phcmembers::Member::Listing', :through => :categorylistings

	end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
phcmembers-6.5.0 app/models/phcmembers/directory/category.rb
phcmembers-6.4.1 app/models/phcmembers/directory/category.rb
phcmembers-6.4.0 app/models/phcmembers/directory/category.rb
phcmembers-6.3.5 app/models/phcmembers/directory/category.rb
phcmembers-6.3.4 app/models/phcmembers/directory/category.rb
phcmembers-6.3.3 app/models/phcmembers/directory/category.rb
phcmembers-6.3.2 app/models/phcmembers/directory/category.rb
phcmembers-6.3.1 app/models/phcmembers/directory/category.rb
phcmembers-6.3.0 app/models/phcmembers/directory/category.rb
phcmembers-6.2.0 app/models/phcmembers/directory/category.rb
phcmembers-6.1.6 app/models/phcmembers/directory/category.rb
phcmembers-6.1.5 app/models/phcmembers/directory/category.rb
phcmembers-6.1.4 app/models/phcmembers/directory/category.rb
phcmembers-6.1.3 app/models/phcmembers/directory/category.rb
phcmembers-6.1.2 app/models/phcmembers/directory/category.rb
phcmembers-6.1.1 app/models/phcmembers/directory/category.rb
phcmembers-6.1.0 app/models/phcmembers/directory/category.rb
phcmembers-6.0.1 app/models/phcmembers/directory/category.rb
phcmembers-6.0.0 app/models/phcmembers/directory/category.rb
phcmembers-5.0.3 app/models/phcmembers/directory/category.rb