Sha256: 8bafe4d5b0ef564cc8dd67ea03f905a2139b088b62667c6220aa1d2a5bfde7e8
Contents?: true
Size: 532 Bytes
Versions: 38
Compression:
Stored size: 532 Bytes
Contents
module ActiveGraph module Node module Query module QueryProxyFindInBatches def find_in_batches(options = {}) query.return(identity).find_in_batches(identity, @model.primary_key, options) do |batch| yield batch.map { |record| record[identity] } end end def find_each(options = {}) query.return(identity).find_each(identity, @model.primary_key, options) do |result| yield result[identity] end end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems