Skip to content

Commit 80f8590

Browse files
chrisyuskapicandocodigo
authored andcommitted
fix: Ruby 2.7 deprecation warning on find_in_batches
1 parent 87613bb commit 80f8590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __find_in_batches(options={}, &block)
102102
scope = scope.__send__(named_scope) if named_scope
103103
scope = scope.instance_exec(&query) if query
104104

105-
scope.find_in_batches(options) do |batch|
105+
scope.find_in_batches(**options) do |batch|
106106
batch = self.__send__(preprocess, batch) if preprocess
107107
yield(batch) if batch.present?
108108
end

0 commit comments

Comments
 (0)