From fc626d461932a8f2bdc858e66d63283bd87a8c24 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 11 May 2016 07:14:36 -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 30ab771..47f5950 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -20,7 +20,7 @@ class Customer < ActiveRecord::Base attr_accessible :name, :skip_details validates_presence_of :id, :name - after_initialize :get_details unless: :skip_details + after_initialize :get_details, unless: :skip_details self.primary_key = :id