repairing code reviews
This commit is contained in:
parent
ee71456060
commit
f202c6b93b
5 changed files with 21 additions and 27 deletions
|
|
@ -57,7 +57,9 @@ class TicketPurchase < ActiveRecord::Base
|
|||
paid: 'f')
|
||||
begin
|
||||
paid_ticket_purchases.each do |ticket|
|
||||
ticket.update_columns(paid: 't', payment_id: payment.id)
|
||||
ticket.paid = 't'
|
||||
ticket.payment_id = payment.id
|
||||
ticket.save
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue