Update customer.rb

This commit is contained in:
2016-05-11 12:17:25 -04:00
parent eed8daf87c
commit cd4e21daf4

View File

@@ -130,13 +130,13 @@ class Customer < ActiveRecord::Base
# Push the updates # Push the updates
def push def push
begin #begin
tries ||= 3 # tries ||= 3
Qbo.get_base(:customer).service.update(@details) Qbo.get_base(:customer).service.update(@details)
rescue Exception => e #rescue Exception => e
retry unless (tries -= 1).zero? # retry unless (tries -= 1).zero?
errors.add(:details, e.message) # errors.add(:details, e.message)
end #end
end end
def qbo def qbo