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

- old
+ new

@@ -7,11 +7,11 @@ # Add Paper Trail has_paper_trail :class_name => 'Phcscriptcdnpro::UrlVersions' # Relationships belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing' - belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version' - belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension' + belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version', optional: true + belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension', optional: true # Validation for Form Fields validates :scripturl, presence: true