mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update customer.rb
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user