app/models/phcscriptcdn/script/listing.rb in phcscriptcdn-5.1.2 vs app/models/phcscriptcdn/script/listing.rb in phcscriptcdn-6.0.0b

- old
+ new

@@ -1,9 +1,10 @@ module Phcscriptcdn class Script::Listing < ApplicationRecord - # Relationships + # Clean URLS + extend FriendlyId # Attach to URL (Nested) has_many :urls, class_name: 'Phcscriptcdn::Script::Url' # Attach to Author (None Nested) @@ -22,8 +23,11 @@ validates :scriptdescription, presence: true validates :scriptstatus, presence: true + + # Clean URLS Slugs + friendly_id :scripttitle, use: :slugged end end \ No newline at end of file