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

- old
+ new

@@ -1,10 +1,14 @@ # frozen_string_literal: true module Spotlight # Exhibit-specific custom search fields class CustomSearchField < ApplicationRecord - serialize :configuration, Hash, coder: YAML + if Rails.version > '7.1' + serialize :configuration, type: Hash, coder: YAML + else + serialize :configuration, Hash, coder: YAML + end belongs_to :exhibit def label=(label) configuration['label'] = label