Fix ticket PDF generation by passing data directly to print_qr_code

This commit is contained in:
kbe
2025-09-05 23:03:50 +02:00
parent a984243fe2
commit 7009245ab0
2 changed files with 11 additions and 5 deletions

View File

@@ -91,8 +91,8 @@ class TicketPdfGenerator
raise "QR code data is empty or invalid"
end
qrcode = RQRCode::QRCode.new(qr_code_data)
pdf.print_qr_code(qrcode, extent: 120, align: :center)
# Generate QR code - prawn-qrcode expects the data string directly
pdf.print_qr_code(qr_code_data, extent: 120, align: :center)
pdf.move_down 15