Sha256: 655d3252f3613151c15a33e1d1081cc2d2c25661624b3eb2ab8d5e699240e0e0

Contents?: true

Size: 711 Bytes

Versions: 19

Compression:

Stored size: 711 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

    validates :lcncdescription,
      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

19 entries across 19 versions & 1 rubygems

Version Path
phcscriptcdnpro-20.7.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-20.6.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-20.5.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-20.4.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-20.3.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-20.2.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-20.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-20.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-19.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-19.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-18.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-18.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-17.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-17.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-16.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-16.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-15.2.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-15.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-15.0.0 app/models/phcscriptcdnpro/script/licence.rb