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-73.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-72.2.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-72.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-72.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-71.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-70.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-68.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-67.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-66.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-65.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-64.1.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-64.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-63.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-62.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-61.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-60.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-59.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-58.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-57.0.0 app/models/phcscriptcdnpro/script/licence.rb
phcscriptcdnpro-56.0.0 app/models/phcscriptcdnpro/script/licence.rb