Remove PDF generation and make HTML one printable
Some checks failed
CI / scan_ruby (push) Failing after 16s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 14s
CI / test (push) Failing after 39s

This commit is contained in:
sto
2025-11-24 12:04:08 +01:00
parent c0f2358a36
commit 768af7c3e9
7 changed files with 17 additions and 32 deletions

View File

@@ -131,13 +131,8 @@ class ContestantsController < ApplicationController
@contestants = @contest.contestants.sort_by { |contestant| contestant.name }
@nonav = true
FerrumPdf.configure do |config|
config.process_timeout = 20
end
respond_to do |format|
format.html
format.pdf { render ferrum_pdf: {}, disposition: :inline, filename: "#{@contest.friendly_id}_qrcodes.pdf", layout: "blank" }
format.html { render layout: "blank" }
end
end