From dd8bf530c9b0ca16f7f0efb9b77df0b56a8b14be Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Apr 2016 10:01:25 -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 24c0da2..8a3e794 100644 --- a/app/models/qbo_customer.rb +++ b/app/models/qbo_customer.rb @@ -34,7 +34,7 @@ class QboCustomer < ActiveRecord::Base # returns the customer's email def email - return @details.primary_email_address.email_address if @details + return @details.email_address if @details end # returns the customer's primary phone