Merge branch 'master' into admin_booths

This commit is contained in:
Stella Rouzi 2017-07-18 13:34:22 +03:00 committed by GitHub
commit db545de6b5
3 changed files with 91 additions and 62 deletions

View file

@ -13,5 +13,15 @@ class PhysicalTicketController < ApplicationController
@file_name = "ticket_for_#{@conference.short_title}"
@user = @physical_ticket.user
@ticket_layout = @conference.ticket_layout.to_sym
respond_to do |format|
format.html
format.pdf do
pdf = TicketPdf.new(@conference, @user, @physical_ticket, @ticket_layout, @file_name)
send_data pdf.render,
filename: @file_name,
type: 'application/pdf',
disposition: 'attachment'
end
end
end
end