demarches-normaliennes/app/views/admin/attestation_templates
Pierre de La Morinerie ed5f2fa35f attestation: fix preview of logos
Turns out that assigning the params to the procedure calls `read` on the
images files. Calling `read` moves the seek offset to the end of the
file; which means that subsequent calls to `read` return an empty
string.

Fix the issue by calling `rewind` before attempting to `read` the file,
to ensure the seek offset is at the beginning of the file.

Fix #4958
2020-03-30 14:58:50 +02:00
..
edit.html.haml Do not permit to upload a GIF file via javascript 2020-02-25 23:33:15 +01:00
show.pdf.prawn attestation: fix preview of logos 2020-03-30 14:58:50 +02:00