From d48df86a493904238624f68b7a662d097ed8fc1b Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 11 May 2016 12:18:41 -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 87ee950..19b2a23 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -20,7 +20,7 @@ class Customer < ActiveRecord::Base validates_presence_of :id, :name after_initialize :pull - after_save :push + before_save :push self.primary_key = :id