app/models/phcscriptcdnpro/script/author.rb in phcscriptcdnpro-14.1.0 vs app/models/phcscriptcdnpro/script/author.rb in phcscriptcdnpro-15.0.0
- old
+ new
@@ -3,19 +3,19 @@
# Clean URL Initialize
extend FriendlyId
# Add Paper Trail
- has_paper_trail
+ has_paper_trail :class_name => 'Phcscriptcdnpro::AuthorVersions'
- # Model Relationships
+ # Relationships
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'
# Clean URL Define
- friendly_id :scriptcdn_author_slug, use: :slugged
+ friendly_id :phcscriptcdnpro_author_slug, use: [:slugged, :finders]
# Define for Multiple Records
- def scriptcdn_author_slug
+ def phcscriptcdnpro_author_slug
[
[:authorfirstname, :authorlastname]
]
end