New Routes: add new_user/dossier_controller attestation

This commit is contained in:
Simon Lehericey 2017-06-29 14:18:59 +02:00 committed by Mathieu Magnin
parent 15b16f36b7
commit 1e661fa686
3 changed files with 31 additions and 0 deletions

View file

@ -2,6 +2,10 @@ module NewUser
class DossiersController < UserController
before_action :ensure_ownership!
def attestation
send_data(dossier.attestation.pdf.read, filename: 'attestation.pdf', type: 'application/pdf')
end
private
def dossier