Sha256: 5dcd527225ab5300912323c27476a4c3968e294ddb0aaebd55b732e3d946dcd5

Contents?: true

Size: 735 Bytes

Versions: 91

Compression:

Stored size: 735 Bytes

Contents

module Phcscriptcdnpro
  class Script::Listing < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

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

    # Relationships
    has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
    belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author'
    belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'
    belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence'

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

    # Define for Multiple Records
    def phcscriptcdnpro_listing_slug
      [
        [:scripttitle]
      ]
    end

  end
end

Version data entries

91 entries across 91 versions & 1 rubygems

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