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-9.0.0 app/models/phcmembers/directory/category.rb
phcmembers-9.0.0b app/models/phcmembers/directory/category.rb
phcmembers-8.1.2 app/models/phcmembers/directory/category.rb
phcmembers-8.1.1 app/models/phcmembers/directory/category.rb
phcmembers-8.1.0 app/models/phcmembers/directory/category.rb
phcmembers-8.0.3 app/models/phcmembers/directory/category.rb
phcmembers-8.0.2 app/models/phcmembers/directory/category.rb
phcmembers-8.0.1 app/models/phcmembers/directory/category.rb
phcmembers-8.0.0 app/models/phcmembers/directory/category.rb
phcmembers-7.0.3 app/models/phcmembers/directory/category.rb
phcmembers-7.0.2 app/models/phcmembers/directory/category.rb
phcmembers-7.0.1 app/models/phcmembers/directory/category.rb
phcmembers-7.0.0 app/models/phcmembers/directory/category.rb
phcmembers-6.7.5 app/models/phcmembers/directory/category.rb
phcmembers-6.7.4 app/models/phcmembers/directory/category.rb
phcmembers-6.7.3 app/models/phcmembers/directory/category.rb
phcmembers-6.7.2 app/models/phcmembers/directory/category.rb
phcmembers-6.7.1 app/models/phcmembers/directory/category.rb
phcmembers-6.7.0 app/models/phcmembers/directory/category.rb
phcmembers-6.5.1 app/models/phcmembers/directory/category.rb