Skip to content

Commit

Permalink
Display only the class name in the SearchBuilder deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Feb 25, 2015
1 parent 7a6b85d commit 0c2f228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blacklight/search_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,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. Instead, define #{method_name} on a subclass of #{self} and set search_builder_class in the configuration"
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.class} 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 0c2f228

Please sign in to comment.