From 090fbba6f567214c4defb48f2811bc962b5481df Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 29 Apr 2016 08:56:05 -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 e794714..16ea7a2 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_find :get_details + after_initialize :get_details self.primary_key = :id