Sha256: 9ed9eddd78b3811dcaea44dc09b7df78dec6f477e0643690d85a629b362a3ebd

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

module Phcscriptcdn
  class Script::Licence < ApplicationRecord

    # Clean URLS
    extend FriendlyId

    # Listing (None Nested)
    has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'

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

    validates :lcncdescript,
      presence: true

    validates :lcncdescription,
      presence: true

    # Clean URLS Slugs
    friendly_id :lcncname, use: :slugged

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phcscriptcdn-7.2.2 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-7.2.1 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-7.2.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-7.1.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-7.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-6.0.0 app/models/phcscriptcdn/script/licence.rb
phcscriptcdn-6.0.0b app/models/phcscriptcdn/script/licence.rb