lib/blacklight/search_builder.rb in blacklight-7.28.0 vs lib/blacklight/search_builder.rb in blacklight-7.29.0

- old
+ new

@@ -25,10 +25,10 @@ else raise ArgumentError, "wrong number of arguments. (#{options.size} for 1..2)" end @blacklight_params = {} - search_state_class = @scope&.search_state_class || Blacklight::SearchState + search_state_class = @scope.try(:search_state_class) || Blacklight::SearchState @search_state = search_state_class.new(@blacklight_params, @scope&.blacklight_config, @scope) @additional_filters = {} @merged_params = {} @reverse_merged_params = {} end