We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 459d721 commit a59e532Copy full SHA for a59e532
app/controllers/concerns/spotlight/search_helper.rb
@@ -4,9 +4,10 @@ module Spotlight
4
# ...
5
module SearchHelper
6
def search_service(user_params = respond_to?(:search_state, true) ? search_state.to_h : {})
7
+ search_state = Blacklight::SearchState.new(user_params, blacklight_config)
8
klass = respond_to?(:search_service_class) ? search_service_class : Blacklight::SearchService
9
- klass.new(config: blacklight_config, user_params:, **search_service_context)
10
+ klass.new(config: blacklight_config, search_state:, **search_service_context)
11
end
12
13
# @return [Hash] a hash of context information to pass through to the search service
0 commit comments