Skip to content

Commit

Permalink
fix last parameter as keyword deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Slashek committed Dec 24, 2021
1 parent bfdd224 commit 232a63e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 232a63e

Please sign in to comment.