Skip to content

Commit cb5e26b

Browse files
chrisyuskapicandocodigo
authored andcommitted
fix: Ruby 2.7 deprecation warning on find_in_batches
1 parent b552ef5 commit cb5e26b

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __find_in_batches(options={}, &block)
8585
scope = scope.__send__(named_scope) if named_scope
8686
scope = scope.instance_exec(&query) if query
8787

88-
scope.find_in_batches(options) do |batch|
88+
scope.find_in_batches(**options) do |batch|
8989
batch = self.__send__(preprocess, batch) if preprocess
9090
yield(batch) if batch.present?
9191
end

0 commit comments

Comments
 (0)