perf(dossier controller): use DossierPreloader

This commit is contained in:
simon lehericey 2022-10-03 12:51:02 +02:00
parent b04f3499c9
commit f32b05e8b4

View file

@ -392,7 +392,7 @@ module Users
end
def dossier_with_champs
dossier_scope.with_champs.find(params[:id])
DossierPreloader.new([dossier]).all.first
end
def should_change_groupe_instructeur?