[Fix #99] Improve the info message in _dossier_link.html.haml

This commit is contained in:
gregoirenovel 2017-04-26 16:15:48 +02:00
parent d596dbfd1b
commit f58a626648
5 changed files with 17 additions and 19 deletions

View file

@ -164,9 +164,9 @@ class Users::DossiersController < UsersController
redirect_to url_for users_dossiers_path
end
def procedure_libelle
dossier = Dossier.includes(:procedure).find(params[:dossier_id])
render json: { procedureLibelle: dossier.procedure.libelle }
def text_summary
dossier = Dossier.find(params[:dossier_id])
render json: { textSummary: dossier.text_summary }
rescue ActiveRecord::RecordNotFound
render json: {}, status: 404
end