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

- old
+ new

@@ -23,10 +23,14 @@ belongs_to :exhibit has_many :solr_document_sidecars has_many :events, as: :resource - serialize :data, Hash, coder: YAML + if Rails.version > '7.1' + serialize :data, type: Hash, coder: YAML + else + serialize :data, Hash, coder: YAML + end ## # Persist the record to the database, and trigger a reindex to solr # # @param [Hash] All arguments will be passed through to ActiveRecord's #save method