Improve the physical_tickets page
This commit is contained in:
parent
0dffc20ad1
commit
61ca626df1
2 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue