Sha256: 09c8489a16f9f2ee43fcc717baf8f5d4c09f65ca3f683c48bfff428b02da03c0

Contents?: true

Size: 642 Bytes

Versions: 49

Compression:

Stored size: 642 Bytes

Contents

module Phcscriptcdn
  class Script::Licence < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

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

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

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

    validates :lcncdescript,
      presence: true

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

    # Define for Multiple Records
    def phcscriptcdn_licence_slug
      [
        [:lcncname]
      ]
    end

  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
phcscriptcdn-29.1.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-29.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-28.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-27.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-26.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-25.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-24.0.1 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-24.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-23.1.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-23.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-22.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-21.2.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-21.1.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-21.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-20.0.1 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-20.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-19.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-18.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-17.0.1 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-17.0.0 app/models/phcscriptcdn/script/licence.rb