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-40.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-39.0.1 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-39.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-38.1.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-38.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-37.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-36.1.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-36.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-35.0.1 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-34.1.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-34.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-33.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-32.0.1 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-32.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-31.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-30.1.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-30.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-29.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-28.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-27.0.0 app/models/phcscriptcdnpro/script/listing.rb