Sha256: b283aa6cd4133e0c5a84075eb5808f2756ac5408dd66d5bb53daa64ae8302314

Contents?: true

Size: 667 Bytes

Versions: 54

Compression:

Stored size: 667 Bytes

Contents

module Phcscriptcdn
  class Script::Version < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

    # Add Paper Trail
    has_paper_trail :class_name => 'Phcscriptcdn::ScriptversionVersions'

    # Relationships
    has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
    has_many :urls, class_name: 'Phcscriptcdn::Script::Url'

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

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

    # Define for Multiple Records
    def phcscriptcdn_version_slug
      [
        [:scriptversion]
      ]
    end

  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
phcscriptcdn-48.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-47.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-44.1.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-45.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-44.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-43.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-42.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-41.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-40.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-38.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-37.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-36.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-35.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-34.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-33.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-32.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-31.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-30.0.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-29.2.0 app/models/phcscriptcdn/script/version.rb
phcscriptcdn-29.1.0 app/models/phcscriptcdn/script/version.rb