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)