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