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