add more explanatory true/false values
This commit is contained in:
parent
f202c6b93b
commit
c0c84b9dbf
4 changed files with 14 additions and 17 deletions
|
|
@ -28,8 +28,7 @@ class ConferenceRegistrationsController < ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
TicketPurchase.destroy_all(user_id: current_user.id, conference_id: @conference.id, paid: 'f')
|
||||
@total_price = Ticket.total_price(@conference, current_user, 't')
|
||||
@total_price = Ticket.total_price(@conference, current_user, true)
|
||||
@tickets = current_user.ticket_purchases.where(conference_id: @conference.id)
|
||||
@ticket_payments = @tickets.group_by(&:payment_id)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue