Sha256: 8be2192e59fb99969af8c09858cd30f68bbc3df8ef08b0c81d1aa30acbb62a27
Contents?: true
Size: 619 Bytes
Versions: 15
Compression:
Stored size: 619 Bytes
Contents
module Phcscriptcdnpro class Script::Listing < ApplicationRecord # Clean URL Initialize extend FriendlyId # Attach to URL (Nested) has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url' # Attach to Author (None Nested) belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author' # Attach to Version (None Nested) belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version' # Attach to Licence (None Nested) belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence' # Clean URL Define friendly_id :scripttitle, use: :slugged end end
Version data entries
15 entries across 15 versions & 1 rubygems