New Routes: add new_user/dossier_controller attestation
This commit is contained in:
parent
15b16f36b7
commit
1e661fa686
3 changed files with 31 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue