From d8798547b13d0cfc6ee4457f8add278fa037ee6d Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 11 May 2016 12:22:05 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 19b2a23..2968a49 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -24,11 +24,6 @@ class Customer < ActiveRecord::Base self.primary_key = :id - # returns true if the customer is active - def active? - return @details.active? if @details - end - # returns a human readable string def to_s return name @@ -77,7 +72,7 @@ class Customer < ActiveRecord::Base # Updates Both local DB name & QBO display_name def name=(s) - @details.display_name = s if @details + display_name = s self.name = s end