From 198e2d593486dbd7c7d936bf5a4eee07066daec2 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Apr 2016 09:08:13 -0400 Subject: [PATCH] Update qbo_customer.rb --- app/models/qbo_customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/qbo_customer.rb b/app/models/qbo_customer.rb index 1ba6126..434cff6 100644 --- a/app/models/qbo_customer.rb +++ b/app/models/qbo_customer.rb @@ -103,7 +103,7 @@ class QboCustomer < ActiveRecord::Base # update's the customers name if updated def update - if not self.name == @detils.display_name + if @details and not self.name == @detils.display_name self.name = @details.display_name self.save end