This commit is contained in:
Siddhant Bajaj 2017-02-26 16:36:00 +00:00 committed by GitHub
commit eb7c04ea13
4 changed files with 25 additions and 1 deletions

View file

@ -32,6 +32,8 @@ class ConferenceRegistrationsController < ApplicationController
@tickets = current_user.ticket_purchases.by_conference(@conference).paid
@ticket_payments = @tickets.group_by(&:ticket_id)
@total_quantity = @tickets.group(:ticket_id).sum(:quantity)
@pdf_filename = "#{@conference.title}.pdf"
@user = current_user
end
def edit; end