Sha256: e276539ec22b18a820ef06defe7a6ea234f73e017cb0ef55645f86b6410f6879

Contents?: true

Size: 424 Bytes

Versions: 10

Compression:

Stored size: 424 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

10 entries across 10 versions & 1 rubygems

Version Path
phcscriptcdnpro-11.1.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-11.0.3 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-11.0.2 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-11.0.1 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-11.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-10.0.1 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-10.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-9.0.1 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-9.0.0 app/models/phcscriptcdnpro/script/author.rb
phcscriptcdnpro-8.1.1 app/models/phcscriptcdnpro/script/author.rb