Update customer.rb

This commit is contained in:
2016-05-12 09:20:57 -04:00
parent 0c2b6a8134
commit 77438191fe

View File

@@ -125,6 +125,12 @@ class Customer < ActiveRecord::Base
#where.not(customers.map(&:id)).destroy_all #where.not(customers.map(&:id)).destroy_all
end end
def without_callback(*args, &block)
skip_callback(*args)
yield
set_callback(*args)
end
private private
# pull the details # pull the details