From 7213725bbd114456dedd7a150b43021a979fc3df Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 17 Jun 2020 20:25:47 -0700 Subject: [PATCH] Fixed another deprecation warning in Ruby 2.7 --- CHANGELOG.md | 4 ++++ lib/searchkick/bulk_indexer.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7939e26..91aa586 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.3.2 (unreleased) + +- Fixed another deprecation warning in Ruby 2.7 + ## 4.3.1 (2020-05-13) - Fixed error with `exclude` in certain cases for Elasticsearch 7.7 diff --git a/lib/searchkick/bulk_indexer.rb b/lib/searchkick/bulk_indexer.rb index cf3ed30..dc45c1b 100644 --- a/lib/searchkick/bulk_indexer.rb +++ b/lib/searchkick/bulk_indexer.rb @@ -141,7 +141,7 @@ module Searchkick def bulk_reindex_job(scope, batch_id, options) Searchkick.with_redis { |r| r.sadd(batches_key, batch_id) } - Searchkick::BulkReindexJob.perform_later({ + Searchkick::BulkReindexJob.perform_later(**{ class_name: scope.searchkick_options[:class_name], index_name: index.name, batch_id: batch_id -- libgit2 0.21.0