Sha256: bf8b4a6bbee404e4f158b26da0475c44ed7e8fe1b680996fac0197a486773b2d
Contents?: true
Size: 392 Bytes
Versions: 6
Compression:
Stored size: 392 Bytes
Contents
module Phcpresspro class Modules::Connection < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail has_paper_trail # Model Relationships belongs_to :post, class_name: 'Phcpresspro::Articles::Post' belongs_to :category, class_name: 'Phcpresspro::Modules::Category' # Clean URL Define friendly_id :id, use: :slugged end end
Version data entries
6 entries across 6 versions & 1 rubygems