app/models/phcscriptcdnpro/script/author.rb in phcscriptcdnpro-5.1.4 vs app/models/phcscriptcdnpro/script/author.rb in phcscriptcdnpro-5.1.5
- old
+ new
@@ -1,10 +1,10 @@
module Phcscriptcdnpro
class Script::Author < ApplicationRecord
# Relationships
- # Attach to Listings
- belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'
+ # Listing Un-Nested
+ has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'
end
end