Sha256: ac5a9e16ef6ece980b20121fc5bef2aca86dac9bec3dfd654255911fae1d573a
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 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, :finders] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcmemberspro-20.5.1 | app/models/phcmemberspro/directory/categorylisting.rb |