lib/salesforce/bulk/operations.rb in activeforce-1.8.0 vs lib/salesforce/bulk/operations.rb in activeforce-1.9.0

- old
+ new

@@ -17,9 +17,17 @@ UpdateJob.new(self, columns).tap do |job| Blockenspiel.invoke(block, job) job.process! end end + + def bulk_upsert(external_id, columns = [], &block) + UpsertJob.new(self, external_id, columns).tap do |job| + Blockenspiel.invoke(block, job) + job.process! + end + end + end end end end