app/models/phcscriptcdnpro/script/listing.rb in phcscriptcdnpro-11.1.1 vs app/models/phcscriptcdnpro/script/listing.rb in phcscriptcdnpro-11.2.0
- old
+ new
@@ -2,10 +2,13 @@
class Script::Listing < ApplicationRecord
# Clean URL Initialize
extend FriendlyId
- # Attach to URL (Nested)
+ # Add Paper Trail
+ has_paper_trail
+
+ # Model Relationships
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
# Attach to Author (None Nested)
belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author'