rename avis#index to avis#procedure

This commit is contained in:
Christophe Robillard 2020-06-26 19:28:28 +02:00
parent 90d6d337a9
commit bbec76d33b
6 changed files with 12 additions and 11 deletions

View file

@ -15,7 +15,7 @@ module Instructeurs
@avis_by_procedure = avis.to_a.group_by(&:procedure)
end
def index
def procedure
@procedure = Procedure.find(params[:procedure_id])
instructeur_avis = current_instructeur.avis.includes(:dossier).where(dossiers: { groupe_instructeur: GroupeInstructeur.where(procedure: @procedure.id) })
@avis_a_donner = instructeur_avis.without_answer