From 86cf0b2edde52e28875304904f04d1d822a0eb17 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 17 May 2016 13:47:58 -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 6239a92..70ff6d4 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -20,7 +20,7 @@ class Customer < ActiveRecord::Base validates_presence_of :id, :name after_initialize :pull - #before_save :push + before_save :push self.primary_key = :id @@ -106,7 +106,7 @@ class Customer < ActiveRecord::Base last = Qbo.first.last_sync query = "Select Id, DisplayName From Customer" - #query << " Where Metadata.LastUpdatedTime >= '#{last.iso8601}' " if last + query << " Where Metadata.LastUpdatedTime >= '#{last.iso8601}' " if last query << " Order By DisplayName " without_callback(:save, :before, :save) do