Remove duplicated attachments

This commit is contained in:
Paul Chavard 2019-08-28 14:27:41 +02:00
parent a3a47b8959
commit 8fcf1353f3
15 changed files with 59 additions and 173 deletions

View file

@ -50,8 +50,6 @@ module Users
def attestation
if dossier.attestation.pdf.attached?
redirect_to url_for(dossier.attestation.pdf)
elsif dossier.attestation.pdf_active_storage.attached?
redirect_to url_for(dossier.attestation.pdf_active_storage)
end
end