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
|
end
|
||||||
|
|
||||||
def dossier_with_champs
|
def dossier_with_champs
|
||||||
dossier_scope.with_champs.find(params[:id])
|
DossierPreloader.new([dossier]).all.first
|
||||||
end
|
end
|
||||||
|
|
||||||
def should_change_groupe_instructeur?
|
def should_change_groupe_instructeur?
|
||||||
|
|
Loading…
Add table
Reference in a new issue