Sha256: ab201ebc0bff577900894d829c7d0edf95086eb9e7b9f34f192d11f8eb2781f8

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

module Phcmemberspro
  class Directory::Category < ApplicationRecord
  
    # Add Paper Trail
    has_paper_trail
    
    # Model Relationships
    has_many :categorylistings, class_name: 'Phcmemberspro::Directory::Categorylisting', dependent: :destroy
    has_many :listings, class_name: 'Phcmemberspro::Member::Listing', :through => :categorylistings
  
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phcmemberspro-14.7.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.7.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.6.3 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.6.2 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.6.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.6.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.5.0 app/models/phcmemberspro/directory/category.rb