app/models/search.rb in blacklight-6.0.0.pre5 vs app/models/search.rb in blacklight-6.0.0
- old
+ new
@@ -1,7 +1,10 @@
+# frozen_string_literal: true
class Search < ActiveRecord::Base
- belongs_to :user
+ belongs_to_arguments = { optional: true } if Rails.version >= '5.0.0'
+
+ belongs_to :user, belongs_to_arguments
serialize :query_params
if Blacklight::Utils.needs_attr_accessible?
attr_accessible :query_params