app/models/phcscriptcdnpro/script/listing.rb in phcscriptcdnpro-72.2.0 vs app/models/phcscriptcdnpro/script/listing.rb in phcscriptcdnpro-73.0.0

- old
+ new

@@ -7,12 +7,12 @@ # Add Paper Trail has_paper_trail :class_name => 'Phcscriptcdnpro::ListingVersions' # Relationships has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url' - belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author' - belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version' - belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence' + belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author', optional: true + belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version', optional: true + belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence', optional: true # Clean URL Define friendly_id :phcscriptcdnpro_listing_slug, use: [:slugged, :finders] # Define for Multiple Records