Sha256: 5516eea78e827df245ee9d241f27d2d616418d0b73d8b668e160d7626a7498af

Contents?: true

Size: 657 Bytes

Versions: 73

Compression:

Stored size: 657 Bytes

Contents

module Phcscriptcdnpro
  class Script::Licence < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

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

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

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

    validates :lcncdescript,
      presence: true

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

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

  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
phcscriptcdnpro-40.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-40.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-39.0.1 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-39.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-38.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-38.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-37.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-36.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-36.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-35.0.1 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-34.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-34.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-33.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-32.0.1 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-32.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-31.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-30.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-30.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-29.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-28.0.0 app/models/phcscriptcdnpro/script/licence.rb