Sha256: add78bea2d468d9b676858464dac9e78b3747c1f7d266f6e15a36cc54dd7e065

Contents?: true

Size: 554 Bytes

Versions: 10

Compression:

Stored size: 554 Bytes

Contents

module Phcscriptcdnpro
  class Script::Url < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

    # Add Paper Trail
    has_paper_trail

    # Model Relationships
    belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'

    # Attach to Version (None Nested)
    belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'

    # Attach to Extension (None Nested)
    belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension'


    # Clean URL Define
    friendly_id :id, use: :slugged

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
phcscriptcdnpro-14.1.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-14.0.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-13.1.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-13.0.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-12.2.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-12.1.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-12.0.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-11.3.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-11.2.1 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-11.2.0 app/models/phcscriptcdnpro/script/url.rb