mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-18 10:30:36 -05:00
Update customer.rb
This commit is contained in:
1 parent
7503c68820
commit
684e7a45aa
1 file changed
+2
-2
@@ -115,8 +115,8 @@ class Customer < ActiveRecord::Base
|
|||||||
qbo_customer = Customer.find_or_create_by(id: customer.id)
|
qbo_customer = Customer.find_or_create_by(id: customer.id)
|
||||||
qbo_customer.update_column(:name, customer.display_name)
|
qbo_customer.update_column(:name, customer.display_name)
|
||||||
qbo_customer.update_column(:id, customer.id)
|
qbo_customer.update_column(:id, customer.id)
|
||||||
}
|
end
|
||||||
}
|
end
|
||||||
|
|
||||||
# remove deleted customers
|
# remove deleted customers
|
||||||
#where.not(customers.map(&:id)).destroy_all
|
#where.not(customers.map(&:id)).destroy_all
|
||||||
|
|||||||
Reference in new issue
Block a user