From 073447a4ce9d1ea2af9ffaf0337a511d76e35baf Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Apr 2016 09:18:37 -0400 Subject: [PATCH] Update qbo_customer.rb --- app/models/qbo_customer.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/qbo_customer.rb b/app/models/qbo_customer.rb index f77ceb7..cda3f66 100644 --- a/app/models/qbo_customer.rb +++ b/app/models/qbo_customer.rb @@ -24,32 +24,32 @@ class QboCustomer < ActiveRecord::Base # returns true if the customer is active def active? - @details.active? if @details + return @details.active? if @details end # returns a human readable string def to_s - name + return name end # returns the customer's email def email - @details.primary_email_address if @details + return @details.primary_email_address if @details end # returns the customer's primary phone def primary_phone - @details.primary_phone if @details + return @details.primary_phone if @details end # returns the customer's mobile phone def mobile_phone - @details.mobile_phone if @details + return @details.mobile_phone if @details end # returns the customer's notes def notes - @details.notes if @details + return @details.notes if @details end # updates the customer's notes in QBO