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