Sha256: b7007402bbf44eb9ba79f88511f5d6c41b12aa027e72448e88d36b3359fea592

Contents?: true

Size: 429 Bytes

Versions: 10

Compression:

Stored size: 429 Bytes

Contents

module Phcscriptcdnpro
  class Script::Extension < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

    # Add Paper Trail
    has_paper_trail

    # Model Relationships
    has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing', :through => :urls
    has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'

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

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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