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-72.2.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-72.1.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-72.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-71.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-70.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-68.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-67.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-66.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-65.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-64.1.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-64.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-63.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-62.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-61.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-60.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-59.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-58.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-57.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-56.0.0 app/models/phcscriptcdnpro/script/listing.rb
phcscriptcdnpro-55.0.0 app/models/phcscriptcdnpro/script/listing.rb