From a9dcb183fddf30480175978c5cb3fac9fd79d5d6 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 12 May 2016 09:23:51 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 05cecc6..e593200 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -11,8 +11,6 @@ class Customer < ActiveRecord::Base unloadable - include WithoutCallback - has_many :issues has_many :qbo_purchases has_many :vehicles @@ -124,11 +122,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