Sha256: 27d78ea9f169cf18ca185f766bea1c7e42e7db42b9e21e10a684aa80d404236d
Contents?: true
Size: 659 Bytes
Versions: 10
Compression:
Stored size: 659 Bytes
Contents
module Phcscriptcdnpro class Script::Listing < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail has_paper_trail # Model Relationships 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
10 entries across 10 versions & 1 rubygems