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