From 86327723b8dda41b662bb5f89a7e30a448b56ef4 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 2 May 2016 13:02:11 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 4aac258..0096b97 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -100,7 +100,7 @@ class Customer < ActiveRecord::Base # proforms a bruteforce sync operation # This needs to be simplified - def sync + def self.sync customers = get_base.service.query("SELECT Id, DisplayName FROM Customer WHERE Metadata.LastUpdatedTime>'#{Qbo.first.last_sync}' ") transaction do