Module: PluckInBatches

Defined in:
lib/activerecord/pluck_in_batches.rb

Instance Method Summary collapse

Instance Method Details

#pluck_in_batches(*args, &block) ⇒ Object



21
22
23
24
25
26
# File 'lib/activerecord/pluck_in_batches.rb', line 21

def pluck_in_batches(*args, &block)
  options = args.extract_options!
  in_batches(options) do |batch|
    batch.pluck(*args).each(&block)
  end
end