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 :authorfullname, use: :slugged # Define for Multiple Records def authorfullname "#{:authorfirstname} #{:authorlastname}" end end end