Skip to content

Commit

Permalink
Explain how to put custom methods on a custom SearchBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Feb 24, 2015
1 parent 419f92d commit 5b361c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blacklight/search_builder.rb
Expand Up @@ -52,7 +52,7 @@ def processed_parameters
Blacklight::Solr::Request.new.tap do |request_parameters|
@processor_chain.each do |method_name|
if @scope.respond_to?(method_name, true)
Deprecation.warn Blacklight::SearchBuilder, "Building search parameters by calling #{method_name} on #{@scope.class}. This behavior will be deprecated in Blacklight 6.0"
Deprecation.warn Blacklight::SearchBuilder, "Building search parameters by calling #{method_name} on #{@scope.class}. This behavior will be deprecated in Blacklight 6.0. Instead, define #{method_name} on a subclass of #{self} and set search_builder_class in the configuration"
@scope.send(method_name, request_parameters, blacklight_params)
else
send(method_name, request_parameters)
Expand Down

0 comments on commit 5b361c6

Please sign in to comment.