Modified conference_registrations_controller show method

This commit is contained in:
Siddhant Bajaj 2017-06-03 13:29:11 +05:30
parent 4a320c8823
commit 2e03bb64ab

View file

@ -31,6 +31,11 @@ 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)
@file_name = "ticket_for_#{@conference.short_title}"
respond_to do |format|
format.html
format.pdf {}
end
end
def edit; end