Sha256: 9a1ff7b9203adcd5ff10d5688a74670cc3de4dad22f1f1b7833c4690c267db86
Contents?: true
Size: 386 Bytes
Versions: 2
Compression:
Stored size: 386 Bytes
Contents
module Phcmembers class Directory::Categorylisting < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail has_paper_trail # Model Relationships belongs_to :listing, class_name: 'Phcmembers::Member::Listing' belongs_to :category, class_name: 'Phcmembers::Directory::Category' # Clean URL Define friendly_id :id, use: :slugged end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcmembers-11.0.0 | app/models/phcmembers/directory/categorylisting.rb |
phcmembers-10.0.0 | app/models/phcmembers/directory/categorylisting.rb |