app/models/phcscriptcdnpro/script/licence.rb in phcscriptcdnpro-8.0.1 vs app/models/phcscriptcdnpro/script/licence.rb in phcscriptcdnpro-8.0.2
- old
+ new
@@ -1,10 +1,14 @@
module Phcscriptcdnpro
class Script::Licence < ApplicationRecord
- # Relationships
+ # Clean URL Initialize
+ extend FriendlyId
# Listing (None Nested)
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'
+ # Clean URL Define
+ friendly_id :lcncname, use: :slugged
+
end
-end
\ No newline at end of file
+end