Sha256: 5ad9b379969a1f2112b58c8cc3094d2b5b9e43a38cbef69ce5c277383dd87cbe
Contents?: true
Size: 479 Bytes
Versions: 10
Compression:
Stored size: 479 Bytes
Contents
module Phcscriptcdnpro class Script::Author < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail has_paper_trail # Model Relationships has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing' # Clean URL Define friendly_id :scriptcdn_author_slug, use: :slugged # Define for Multiple Records def scriptcdn_author_slug [ [:authorfirstname, :authorlastname] ] end end end
Version data entries
10 entries across 10 versions & 1 rubygems