perf(dossier controller): use DossierPreloader
This commit is contained in:
parent
b04f3499c9
commit
f32b05e8b4
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue