diff --git a/app/models/qbo_customer.rb b/app/models/qbo_customer.rb index 0decd05..86cd137 100644 --- a/app/models/qbo_customer.rb +++ b/app/models/qbo_customer.rb @@ -101,10 +101,12 @@ class QboCustomer < ActiveRecord::Base end end - # update's the customers name + # update's the customers name if updated def update - self.name = @details.display_name - self.save + if not self.name == @detils.display_name + self.name = @details.display_name + self.save + end end end