From 22241a3be4a99901645481699ae0f5a17b4d4616 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 29 Apr 2016 08:45:44 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 16ea7a2..9bf095c 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -18,7 +18,7 @@ class Customer < ActiveRecord::Base attr_accessible :name validates_presence_of :id, :name - after_initialize :get_details + after_touch :get_details self.primary_key = :id