Improve the physical_tickets page

This commit is contained in:
Michael Ball 2020-07-13 04:21:31 -07:00
parent 0dffc20ad1
commit 61ca626df1
2 changed files with 10 additions and 6 deletions

View file

@ -8,6 +8,7 @@ class PhysicalTicketsController < ApplicationController
def index
@physical_tickets = current_user.physical_tickets.by_conference(@conference)
@has_registration_ticket = current_user.ticket_purchases.where(ticket: @conference.registration_tickets, paid: true).any?
@unpaid_ticket_purchases = current_user.ticket_purchases.by_conference(@conference).unpaid
@user = current_user
end