app/models/search.rb in blacklight-7.27.1 vs app/models/search.rb in blacklight-7.28.0
- old
+ new
@@ -1,10 +1,11 @@
# frozen_string_literal: true
class Search < ApplicationRecord
belongs_to :user, optional: true
- serialize :query_params
+ # use a backwards-compatible serializer until the Rails API stabilizes and we can evaluate for major-revision compatibility
+ serialize :query_params, Blacklight::SearchParamsYamlCoder
# A Search instance is considered a saved search if it has a user_id.
def saved?
user_id?
end