[Fix #99] Improve the info message in _dossier_link.html.haml
This commit is contained in:
parent
d596dbfd1b
commit
f58a626648
5 changed files with 17 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue