Update customer.rb

This commit is contained in:
2016-05-02 13:28:05 -04:00
parent 23b06ced47
commit 97c65b703f

View File

@@ -95,7 +95,11 @@ class Customer < ActiveRecord::Base
# returns the QBO customer # returns the QBO customer
def get_customer (id) def get_customer (id)
get_base.find_by_id(id) begin
return get_base.find_by_id(id)
rescue
return nil
end
end end
# proforms a bruteforce sync operation # proforms a bruteforce sync operation