Sha256: 23ca6060ac2f7f3d49d252e20d939d9e08979a81f86d31f45f6ed8df776b2139
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
module Phcmembers class Directory::Category < ApplicationRecord # Clean URL Initialize extend FriendlyId # Paper_tail Initialize has_paper_trail # Relationships has_many :categorylistings, class_name: 'Phcmembers::Directory::Categorylisting', dependent: :destroy has_many :listings, class_name: 'Phcmembers::Member::Listing', :through => :categorylistings # Clean URL Define friendly_id :catname, use: :slugged end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcmembers-11.0.0 | app/models/phcmembers/directory/category.rb |