Sha256: c3df45d295c2927b434690aa8d0330079d8d58d13c31167fb620491a2af036cd
Contents?: true
Size: 583 Bytes
Versions: 55
Compression:
Stored size: 583 Bytes
Contents
module Phcpress class Modules::Connection < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail has_paper_trail :class_name => 'Phcpress::ConnectionVersions' # Relationships belongs_to :post, class_name: 'Phcpress::Article::Post' belongs_to :category, class_name: 'Phcpress::Modules::Category' # Clean URL Define friendly_id :phcpress_connections_slug, use: [:slugged, :finders] # Define for Multiple Records def phcpress_connections_slug [ [:post_id, :category_id] ] end end end
Version data entries
55 entries across 55 versions & 1 rubygems