From 9fe005e4d7cf54032fca2dadc7966afc60839135 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Wed, 5 Feb 2020 18:19:05 +0100 Subject: [PATCH] fix pending demandes --- app/controllers/manager/demandes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/manager/demandes_controller.rb b/app/controllers/manager/demandes_controller.rb index fc9aa6fb2..7a89a1ea9 100644 --- a/app/controllers/manager/demandes_controller.rb +++ b/app/controllers/manager/demandes_controller.rb @@ -48,7 +48,7 @@ module Manager end def pending_demandes - already_approved_emails = Administrateur.eager(:user) + already_approved_emails = Administrateur.eager_load(:user) .where(users: { email: demandes.map { |d| d[:email] } }) .map(&:email)