From 75defce2dc643ba5039a1afe654dcd19a79239e6 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 24 May 2016 11:38:55 -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 1576642..e6ad21b 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -129,7 +129,7 @@ class Customer < ActiveRecord::Base Customer.set_callback(*args) end - private + protected def self.background(&block) Thread.new do @@ -152,6 +152,7 @@ class Customer < ActiveRecord::Base # Push the updates def save_with_push + super begin #tries ||= 3 @details = Qbo.get_base(:customer).service.update(@details) @@ -162,5 +163,4 @@ class Customer < ActiveRecord::Base errors.add(e.message) end end - end