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