Sha256: a83b64dd774878929a5f6ed5034cc03b42b97bb99d9ddbc51d68b459797db0a3

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcscriptcdnpro-8.0.4 app/models/phcscriptcdnpro/script/author.rb