Sha256: efaa66280251aab0b21a44a2b929643e1b65ec37aeb458d3734c44b64df77653
Contents?: true
Size: 780 Bytes
Versions: 3
Compression:
Stored size: 780 Bytes
Contents
module PhcdevworksScripts class Script::Extension < ApplicationRecord # Clean URL Initialize extend FriendlyId # Paper Trail Initialize has_paper_trail :class_name => 'PhcdevworksScripts::ExtensionVersions' # Relationships has_many :listings, class_name: 'PhcdevworksScripts::Script::Listing', :through => :urls has_many :urls, class_name: 'PhcdevworksScripts::Script::Url' # Form Fields Validation validates :script_extension_name, presence: true validates :script_extension_description, presence: true validates :script_extension, presence: true # Clean URL Define friendly_id :phc_nice_url_slug, use: [:slugged, :finders] def phc_nice_url_slug [:script_extension] end end end
Version data entries
3 entries across 3 versions & 1 rubygems