From a64dc104719edb1906599f472a8a21c925e0e5fd Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 12 May 2016 09:25:23 -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 e593200..ae3c5a8 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -122,7 +122,7 @@ class Customer < ActiveRecord::Base #where.not(customers.map(&:id)).destroy_all end - def without_callback(*args, &block) + def self.without_callback(*args, &block) skip_callback(*args) yield set_callback(*args)