Sha256: 5dcd527225ab5300912323c27476a4c3968e294ddb0aaebd55b732e3d946dcd5
Contents?: true
Size: 735 Bytes
Versions: 91
Compression:
Stored size: 735 Bytes
Contents
module Phcscriptcdnpro class Script::Listing < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail has_paper_trail :class_name => 'Phcscriptcdnpro::ListingVersions' # Relationships has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url' belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author' belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version' belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence' # Clean URL Define friendly_id :phcscriptcdnpro_listing_slug, use: [:slugged, :finders] # Define for Multiple Records def phcscriptcdnpro_listing_slug [ [:scripttitle] ] end end end
Version data entries
91 entries across 91 versions & 1 rubygems