From 2995060ec65b1373f52bee0509cb7c30cbb53a74 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 17 May 2016 13:44:04 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index dc4f6cd..67e93eb 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -111,7 +111,7 @@ class Customer < ActiveRecord::Base #without_callback(:save, :before, :save) do #customers = Qbo.get_base(:customer).service.query_in_batches(query, per_page: 100) do |batch| - customers = Qbo.get_base(:customer).service.all + batch = Qbo.get_base(:customer).service.all batch.each do |customer| # Update the customer table qbo_customer = Customer.find_or_create_by(id: customer.id) @@ -119,7 +119,7 @@ class Customer < ActiveRecord::Base qbo_customer.id = customer.id qbo_customer.save end - end + #end #end # remove deleted customers