Sha256: b872d76cfa938965cecd522dc994f261f554c0684e1d3c2eb628d336aa842874
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcmemberspro-20.1.0 | app/models/phcmemberspro/directory/categorylisting.rb |