app/models/spotlight/exhibit.rb in blacklight-spotlight-3.6.0.beta7 vs app/models/spotlight/exhibit.rb in blacklight-spotlight-3.6.0.beta8

- old
+ new

@@ -33,11 +33,14 @@ after_validation :move_friendly_id_error_to_slug acts_as_tagger acts_as_taggable delegate :blacklight_config, to: :blacklight_configuration - serialize :facets, Array, coder: YAML - + if Rails.version > '7.1' + serialize :facets, type: Array, coder: YAML + else + serialize :facets, Array, coder: YAML + end # NOTE: friendly id associations need to be 'destroy'ed to reap the slug history has_many :about_pages, -> { for_default_locale }, extend: FriendlyId::FinderMethods has_many :attachments, dependent: :destroy has_many :contact_emails, dependent: :delete_all # These are the contacts who get "Contact us" emails has_many :contacts, dependent: :delete_all # These are the contacts who appear in the sidebar