Commit 7213725bbd114456dedd7a150b43021a979fc3df

Authored by Andrew Kane
1 parent 930289d5

Fixed another deprecation warning in Ruby 2.7

Showing 2 changed files with 5 additions and 1 deletions   Show diff stats
CHANGELOG.md
  1 +## 4.3.2 (unreleased)
  2 +
  3 +- Fixed another deprecation warning in Ruby 2.7
  4 +
1 5 ## 4.3.1 (2020-05-13)
2 6  
3 7 - Fixed error with `exclude` in certain cases for Elasticsearch 7.7
... ...
lib/searchkick/bulk_indexer.rb
... ... @@ -141,7 +141,7 @@ module Searchkick
141 141  
142 142 def bulk_reindex_job(scope, batch_id, options)
143 143 Searchkick.with_redis { |r| r.sadd(batches_key, batch_id) }
144   - Searchkick::BulkReindexJob.perform_later({
  144 + Searchkick::BulkReindexJob.perform_later(**{
145 145 class_name: scope.searchkick_options[:class_name],
146 146 index_name: index.name,
147 147 batch_id: batch_id
... ...