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,7 +11,6 @@
|
|||||||
class Customer < ActiveRecord::Base
|
class Customer < ActiveRecord::Base
|
||||||
unloadable
|
unloadable
|
||||||
|
|
||||||
require 'without_callback'
|
|
||||||
include WithoutCallback
|
include WithoutCallback
|
||||||
|
|
||||||
has_many :issues
|
has_many :issues
|
||||||
@@ -125,11 +124,11 @@ 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)
|
#def without_callback(*args, &block)
|
||||||
skip_callback(*args)
|
# skip_callback(*args)
|
||||||
yield
|
# yield
|
||||||
set_callback(*args)
|
# set_callback(*args)
|
||||||
end
|
#end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user