app/models/search.rb in blacklight-7.40.0 vs app/models/search.rb in blacklight-8.0.0.beta1

- old
+ new

@@ -1,16 +1,10 @@ # frozen_string_literal: true class Search < ApplicationRecord belongs_to :user, optional: true - # use a backwards-compatible serializer until the Rails API stabilizes and we can evaluate for major-revision compatibility - if ::Rails.version.to_f >= 7.1 - # non-deprecated coder: keyword arg for Rails 7.1+ - serialize :query_params, coder: Blacklight::SearchParamsYamlCoder - else - serialize :query_params, Blacklight::SearchParamsYamlCoder - end + serialize :query_params, Blacklight::SearchParamsYamlCoder # A Search instance is considered a saved search if it has a user_id. def saved? user_id? end