Sha256: 81109565b33c7e271165e8c7405125645bc32b4bb93632e8371a16a1683b12ec

Contents?: true

Size: 546 Bytes

Versions: 92

Compression:

Stored size: 546 Bytes

Contents

module Phcscriptcdnpro
  class Script::Author < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

    # Add Paper Trail
    has_paper_trail :class_name => 'Phcscriptcdnpro::AuthorVersions'

    # Relationships
    has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'

    # Clean URL Define
    friendly_id :phcscriptcdnpro_author_slug, use: [:slugged, :finders]

    # Define for Multiple Records
    def phcscriptcdnpro_author_slug
      [
        [:authorfirstname, :authorlastname]
      ]
    end

  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
phcscriptcdnpro-55.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-54.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-53.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-52.0.2 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-52.0.1 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-52.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-51.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-50.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-49.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-48.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-47.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-46.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-45.1.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-45.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-44.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-43.2.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-43.1.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-43.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-42.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-41.0.0 app/models/phcscriptcdnpro/script/author.rb