amelioration(instructeurs/dossiers#show): supprime le double chargement des champs et annotations privées
This commit is contained in:
parent
bdc5bb8480
commit
0ef46b6f07
1 changed files with 1 additions and 4 deletions
|
@ -275,10 +275,7 @@ module Instructeurs
|
||||||
end
|
end
|
||||||
|
|
||||||
def dossier_with_champs
|
def dossier_with_champs
|
||||||
@dossier ||= DossierPreloader.load_one(dossier_scope
|
@dossier ||= DossierPreloader.load_one(dossier_scope.find(params[:dossier_id]))
|
||||||
.with_champs
|
|
||||||
.with_annotations
|
|
||||||
.find(params[:dossier_id]))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def commentaire_params
|
def commentaire_params
|
||||||
|
|
Loading…
Reference in a new issue