Module: Gouda::BulkAdapterExtension

Included in:
Adapter
Defined in:
lib/gouda/bulk.rb

Instance Method Summary collapse

Instance Method Details

#enqueue_all(active_jobs) ⇒ Object



30
31
32
33
34
35
36
37
# File 'lib/gouda/bulk.rb', line 30

def enqueue_all(active_jobs)
  if Thread.current[:gouda_bulk_buffer]
    Thread.current[:gouda_bulk_buffer].append(*active_jobs)
    active_jobs
  else
    super
  end
end