From 1ea3160a6a238a4b086bd7be99a21482805affd7 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Wed, 15 May 2024 16:17:35 +1000 Subject: [PATCH] Fic enterprises controller --- app/controllers/admin/enterprises_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/admin/enterprises_controller.rb b/app/controllers/admin/enterprises_controller.rb index db67df4406..e5b35473ac 100644 --- a/app/controllers/admin/enterprises_controller.rb +++ b/app/controllers/admin/enterprises_controller.rb @@ -189,10 +189,7 @@ module Admin .visible_enterprises if enterprises.present? - enterprises.includes( - supplied_products: - [:supplier, :variants, :image] - ) + enterprises.includes(supplied_products: [:variants, :image]) end when :index if spree_current_user.admin?