Fixed destroy call

This commit is contained in:
ricky committed 2016-02-29 09:27:37 -05:00
1 parent 12cebb1cd1
commit b4833d7a5f
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ class QboInvoice < ActiveRecord::Base
qbo_invoice.save!
}
#remove deleted invoices
where.not(invoices.map(&:id)).destroy
where.not(invoices.map(&:id)).destroy_all
end
def self.update(id)