From 0ef46b6f07f483ef65d2b61b2eb0d9d94d8f9668 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 10 Jan 2023 13:55:48 +0100 Subject: [PATCH] =?UTF-8?q?amelioration(instructeurs/dossiers#show):=20sup?= =?UTF-8?q?prime=20le=20double=20chargement=20des=20champs=20et=20annotati?= =?UTF-8?q?ons=20priv=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/instructeurs/dossiers_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/instructeurs/dossiers_controller.rb b/app/controllers/instructeurs/dossiers_controller.rb index 91b56f490..45307de1a 100644 --- a/app/controllers/instructeurs/dossiers_controller.rb +++ b/app/controllers/instructeurs/dossiers_controller.rb @@ -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