We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__send__
send
__find_in_batches
1 parent 14abe96 commit 9bbeaddCopy full SHA for 9bbeadd
elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb
@@ -85,7 +85,7 @@ module Importing
85
def __find_in_batches(options={}, &block)
86
named_scope = options.delete(:scope)
87
88
- scope = named_scope ? self.send(named_scope) : self
+ scope = named_scope ? self.__send__(named_scope) : self
89
90
scope.find_in_batches(options) do |batch|
91
batch_for_bulk = batch.map { |a| { index: { _id: a.id, data: a.__elasticsearch__.as_indexed_json } } }
0 commit comments