From 92baf905cd203a56025c3aaeb7a5380f2ac54547 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 29 Apr 2016 08:47:39 -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 9bf095c..e794714 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_touch :get_details + after_find :get_details self.primary_key = :id