From 23b06ced47e424db5f85b1840992f1795bd11d66 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 2 May 2016 13:13:53 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 43554ad..7695f5f 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -138,7 +138,11 @@ class Customer < ActiveRecord::Base push else puts "Getting '#{name}'" - @details[name] + begin + return @details[name] + rescue + return nil + end end end