app/models/phcscriptcdnpro/script/extension.rb in phcscriptcdnpro-8.0.1 vs app/models/phcscriptcdnpro/script/extension.rb in phcscriptcdnpro-8.0.2
- old
+ new
@@ -1,11 +1,15 @@
module Phcscriptcdnpro
class Script::Extension < ApplicationRecord
- # Relationships
+ # Clean URL Initialize
+ extend FriendlyId
# URLs & Extensions (None Nested)
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing', :through => :urls
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
+ # Clean URL Define
+ friendly_id :scriptextensionname, use: :slugged
+
end
-end
\ No newline at end of file
+end