Skip to content

Commit

Permalink
Merge pull request #1121 from projectblacklight/deprecation-class-name
Browse files Browse the repository at this point in the history
Display only the class name in the SearchBuilder deprecation warning
  • Loading branch information
jcoyne committed Feb 26, 2015
2 parents 621c3b8 + 0c2f228 commit 50acc87
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 50acc87

Please sign in to comment.