From 1103355cb72df370b0ac26e92e2eaa25a1149579 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Apr 2016 09:59:45 -0400 Subject: [PATCH] Update qbo_customer.rb --- app/models/qbo_customer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/qbo_customer.rb b/app/models/qbo_customer.rb index 63de673..24c0da2 100644 --- a/app/models/qbo_customer.rb +++ b/app/models/qbo_customer.rb @@ -34,17 +34,17 @@ class QboCustomer < ActiveRecord::Base # returns the customer's email def email - return @details.primary_email_address if @details + return @details.primary_email_address.email_address if @details end # returns the customer's primary phone def primary_phone - return @details.primary_phone if @details + return @details.primary_phone.free_form_number if @details end # returns the customer's mobile phone def mobile_phone - return @details.mobile_phone if @details + return @details.mobile_phone.free_form_number if @details end # returns the customer's notes