Sha256: 263ff2a82b493d4f3fecfe1d593b799b6834d56c32d24411a2a584880c509dc4
Contents?: true
Size: 696 Bytes
Versions: 6
Compression:
Stored size: 696 Bytes
Contents
module Phcscriptcdn class Script::Licence < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail has_paper_trail :class_name => 'Phcscriptcdn::LicenceVersions' # Relationships has_many :listings, class_name: 'Phcscriptcdn::Script::Listing' # Validation for Form Fields validates :lcncname, presence: true validates :lcncdescript, presence: true validates :lcncdescription, presence: true # Clean URL Define friendly_id :phcscriptcdn_licence_slug, use: [:slugged, :finders] # Define for Multiple Records def phcscriptcdn_licence_slug [ [:lcncname] ] end end end
Version data entries
6 entries across 6 versions & 1 rubygems