Sha256: 5e4cdb1a90d95b3e05acca80d8230bff23cb0ab2e00c7294e27df5a7d18b34a7

Contents?: true

Size: 649 Bytes

Versions: 12

Compression:

Stored size: 649 Bytes

Contents

module Phcscriptcdnpro
  class Script::Version < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

    # Paper Trail Initialize
    has_paper_trail :class_name => 'Phcscriptcdnpro::ScriptversionVersions'

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

    # Form Fields Validation
    validates :script_version_number,
      presence: true

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

    def phc_nice_url_slug
      [:script_version_number]
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
phcscriptcdnpro-79.0.3 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-79.0.2 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-79.0.1 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-79.0.0 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-78.4.0 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-78.3.0 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-78.2.0 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-78.1.0 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-78.0.0 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-77.0.0 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-75.0.0 app/models/phcscriptcdnpro/script/version.rb
phcscriptcdnpro-74.0.0 app/models/phcscriptcdnpro/script/version.rb