app/models/phcscriptcdnpro/script/extension.rb in phcscriptcdnpro-11.1.1 vs app/models/phcscriptcdnpro/script/extension.rb in phcscriptcdnpro-11.2.0
- old
+ new
@@ -2,10 +2,13 @@
class Script::Extension < ApplicationRecord
# Clean URL Initialize
extend FriendlyId
- # URLs & Extensions (None Nested)
+ # Add Paper Trail
+ has_paper_trail
+
+ # Model Relationships
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