app/models/spotlight/exhibit.rb in blacklight-spotlight-0.17.0 vs app/models/spotlight/exhibit.rb in blacklight-spotlight-0.17.1

- old
+ new

@@ -50,10 +50,10 @@ accepts_nested_attributes_for :about_pages, :attachments, :contacts, :custom_fields, :feature_pages, :main_navigations, :owned_taggings, :resources, :searches, :solr_document_sidecars accepts_nested_attributes_for :blacklight_configuration, :home_page, :masthead, :thumbnail, :filters, update_only: true accepts_nested_attributes_for :contact_emails, reject_if: proc { |attr| attr['email'].blank? } - accepts_nested_attributes_for :roles, allow_destroy: true, reject_if: proc { |attr| attr['user_key'].blank? } + accepts_nested_attributes_for :roles, allow_destroy: true, reject_if: proc { |attr| attr['user_key'].blank? && attr['id'].blank? } before_save :sanitize_description, if: :description_changed? include Spotlight::DefaultThumbnailable def main_about_page