Sha256: a1e927e7a938b1504b39539765ec6f0fc04499396b8f0f58b1f39b7e2c8f12e1
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
module Phcscriptcdn class Script::Author < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail has_paper_trail :class_name => 'Phcscriptcdn::AuthorVersions' # Relationships has_many :listings, class_name: 'Phcscriptcdn::Script::Listing' # Clean URL Define friendly_id :phcscriptcdn_author_slug, use: [:slugged, :finders] # Define for Multiple Records def phcscriptcdn_author_slug [ [:author_first_name, :author_last_name] ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcscriptcdn-51.0.0 | app/models/phcscriptcdn/script/author.rb |
phcscriptcdn-50.0.0 | app/models/phcscriptcdn/script/author.rb |