module Phcscriptcdnpro class Script::Author < ApplicationRecord # Clean URL Initialize extend FriendlyId # Listing (None Nested) 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