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
|
||||
|
||||
def dossier_with_champs
|
||||
@dossier ||= DossierPreloader.load_one(dossier_scope
|
||||
.with_champs
|
||||
.with_annotations
|
||||
.find(params[:dossier_id]))
|
||||
@dossier ||= DossierPreloader.load_one(dossier_scope.find(params[:dossier_id]))
|
||||
end
|
||||
|
||||
def commentaire_params
|
||||
|
|
Loading…
Reference in a new issue