Merge pull request #1559 from siddhantbajaj/purchase-index

[WIP] Ticket Purchase Index Page
This commit is contained in:
Ana María Martínez Gómez 2017-07-06 09:28:32 +02:00 committed by GitHub
commit e25de318bd
5 changed files with 43 additions and 1 deletions

View file

@ -6,6 +6,7 @@ class PhysicalTicketController < ApplicationController
def index
@physical_tickets = current_user.physical_tickets.by_conference(@conference)
@unpaid_ticket_purchases = current_user.ticket_purchases.by_conference(@conference).unpaid
end
def show

View file

@ -23,6 +23,10 @@ class TicketPurchasesController < ApplicationController
end
end
def index
@unpaid_ticket_purchases = current_user.ticket_purchases.by_conference(@conference).unpaid
end
private
def ticket_purchase_params