Update customer.rb

This commit is contained in:
2016-05-12 09:22:22 -04:00
parent 77438191fe
commit 1259abc6c7

View File

@@ -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