Sha256: 6a30ea8321e4d3277e16cd3d0669d2815064b319a3bb5efa9f59b8a6864031c4
Contents?: true
Size: 637 Bytes
Versions: 10
Compression:
Stored size: 637 Bytes
Contents
module Phcscriptcdn class Script::Version < ApplicationRecord # Clean URL Initialize extend FriendlyId # Paper Trail Initialize has_paper_trail :class_name => 'Phcscriptcdn::ScriptversionVersions' # Relationships has_many :listings, class_name: 'Phcscriptcdn::Script::Listing', :through => :urls has_many :urls, class_name: 'Phcscriptcdn::Script::Url' # Form Fields Validation validates :script_version_number, presence: true # Clean URL Define friendly_id :phc_nice_url_slug, use: [:slugged, :finders] def phc_nice_url_slug [:script_version_number] end end end
Version data entries
10 entries across 10 versions & 1 rubygems