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

Version Path
phcscriptcdnpro-14.1.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-14.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-13.1.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-13.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-12.2.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-12.1.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-12.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-11.3.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-11.2.1 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-11.2.0 app/models/phcscriptcdnpro/script/author.rb