diff --git a/lib/tire/delete_by_query.rb b/lib/tire/delete_by_query.rb index c2c062d7..485f55e0 100644 --- a/lib/tire/delete_by_query.rb +++ b/lib/tire/delete_by_query.rb @@ -20,7 +20,7 @@ def initialize(indices=nil, options={}, &block) def perform @response = Configuration.client.delete url if @response.failure? - STDERR.puts "[REQUEST FAILED] #{self.to_curl}\n" + STDERR.puts "[REQUEST FAILED] #{to_curl}\n" raise DeleteByQueryRequestFailed, @response.to_s end @json = MultiJson.decode(@response.body)