From 232a63ec0d17d67b51f3b24825cb885e81582cc9 Mon Sep 17 00:00:00 2001 From: Maciej Krajowski-Kukiel Date: Fri, 24 Dec 2021 12:03:15 +0100 Subject: [PATCH] fix last parameter as keyword deprecation --- .../lib/elasticsearch/model/adapters/active_record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb b/elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb index 23c4267fa..6d616a2c7 100644 --- a/elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb +++ b/elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb @@ -102,7 +102,7 @@ def __find_in_batches(options={}, &block) scope = scope.__send__(named_scope) if named_scope scope = scope.instance_exec(&query) if query - scope.find_in_batches(options) do |batch| + scope.find_in_batches(**options) do |batch| yield (preprocess ? self.__send__(preprocess, batch) : batch) end end