Skip to content

Commit 232a63e

Browse files
committed
fix last parameter as keyword deprecation
1 parent bfdd224 commit 232a63e

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
@@ -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
yield (preprocess ? self.__send__(preprocess, batch) : batch)
107107
end
108108
end

0 commit comments

Comments
 (0)