Sha256: 8f9dc8813c21f44622a41a24857dd43d206c1aab5615c5003979092e3f292290

Contents?: true

Size: 853 Bytes

Versions: 92

Compression:

Stored size: 853 Bytes

Contents

module Phcscriptcdnpro
  class Script::Extension < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

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

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

    # Validation for Form Fields
    validates :scriptextensionname,
      presence: true

    validates :scriptextensiondes,
      presence: true

    validates :scriptextension,
      presence: true

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

    # Define for Multiple Records
    def phcscriptcdnpro_extentension_slug
      [
        [:scriptextensionname, :scriptextension]
      ]
    end

  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
phcscriptcdnpro-73.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-72.2.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-72.1.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-72.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-71.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-70.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-68.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-67.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-66.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-65.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-64.1.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-64.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-63.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-62.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-61.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-60.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-59.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-58.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-57.0.0 app/models/phcscriptcdnpro/script/extension.rb
phcscriptcdnpro-56.0.0 app/models/phcscriptcdnpro/script/extension.rb