From 1259abc6c76259469ef2cef8c6c72b0a1d763f7f Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 12 May 2016 09:22:22 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index a63f153..05cecc6 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -11,7 +11,6 @@ class Customer < ActiveRecord::Base unloadable - require 'without_callback' include WithoutCallback has_many :issues @@ -125,11 +124,11 @@ class Customer < ActiveRecord::Base #where.not(customers.map(&:id)).destroy_all end - def without_callback(*args, &block) - skip_callback(*args) - yield - set_callback(*args) - end + #def without_callback(*args, &block) + # skip_callback(*args) + # yield + # set_callback(*args) + #end private