Fixed destroy call

This commit is contained in:
2016-02-29 09:27:37 -05:00
parent 12cebb1cd1
commit b4833d7a5f

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)