From bd18574bbab6f1b2d0a14147c2aea078d662fd1f Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 24 May 2016 12:00:02 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 1df3550..2352ff3 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -20,8 +20,8 @@ class Customer < ActiveRecord::Base validates_presence_of :id, :name after_initialize :pull - alias_method_chain :save_without_push, :save - alias_method_chain :save, :save_with_push + alias_method :save_without_push, :save + alias_method :save, :save_with_push self.primary_key = :id