controller
This commit is contained in:
parent
981e7ff244
commit
b69d8249c5
3 changed files with 4 additions and 3 deletions
|
@ -234,7 +234,7 @@ module Experts
|
|||
end
|
||||
|
||||
def commentaire_params
|
||||
params.require(:commentaire).permit(:body, :piece_jointe)
|
||||
params.require(:commentaire).permit(:body, piece_jointe: [])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -256,6 +256,7 @@ module Instructeurs
|
|||
flash.notice = "Message envoyé"
|
||||
redirect_to messagerie_instructeur_dossier_path(procedure, dossier)
|
||||
else
|
||||
@commentaire.piece_jointe.purge.reload
|
||||
flash.alert = @commentaire.errors.full_messages
|
||||
render :messagerie
|
||||
end
|
||||
|
@ -393,7 +394,7 @@ module Instructeurs
|
|||
end
|
||||
|
||||
def commentaire_params
|
||||
params.require(:commentaire).permit(:body, :piece_jointe)
|
||||
params.require(:commentaire).permit(:body, piece_jointe: [])
|
||||
end
|
||||
|
||||
def champs_private_params
|
||||
|
|
|
@ -621,7 +621,7 @@ module Users
|
|||
end
|
||||
|
||||
def commentaire_params
|
||||
params.require(:commentaire).permit(:body, :piece_jointe)
|
||||
params.require(:commentaire).permit(:body, piece_jointe: [])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue