Sha256: e071b46ce0c9fd4c4735fab7fadaf965be8f2f3847c3d93b82ae14ec65df4928

Contents?: true

Size: 411 Bytes

Versions: 7

Compression:

Stored size: 411 Bytes

Contents

module Phcmemberspro
  class Directory::Categorylisting < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

    # Add Paper Trail
    has_paper_trail

    # Model Relationships
    belongs_to :listing, class_name: 'Phcmemberspro::Member::Listing'
    belongs_to :category, class_name: 'Phcmemberspro::Directory::Category'

    # Clean URL Define
    friendly_id :id, use: :slugged

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phcmemberspro-20.5.0 app/models/phcmemberspro/directory/categorylisting.rb
phcmemberspro-20.4.0 app/models/phcmemberspro/directory/categorylisting.rb
phcmemberspro-20.3.1 app/models/phcmemberspro/directory/categorylisting.rb
phcmemberspro-20.3.0 app/models/phcmemberspro/directory/categorylisting.rb
phcmemberspro-20.2.2 app/models/phcmemberspro/directory/categorylisting.rb
phcmemberspro-20.2.1 app/models/phcmemberspro/directory/categorylisting.rb
phcmemberspro-20.2.0 app/models/phcmemberspro/directory/categorylisting.rb