From e28c05bb92dddea1de494ba3e7b216cb2e8571d9 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 8 Apr 2020 18:36:09 +0200 Subject: [PATCH] [GraphQL] fix groupe instructeur type definition --- app/graphql/types/groupe_instructeur_type.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/graphql/types/groupe_instructeur_type.rb b/app/graphql/types/groupe_instructeur_type.rb index 94cd19a57..826de861a 100644 --- a/app/graphql/types/groupe_instructeur_type.rb +++ b/app/graphql/types/groupe_instructeur_type.rb @@ -5,13 +5,13 @@ module Types global_id_field :id field :label, String, null: false field :instructeurs, [Types::ProfileType], null: false - end - def instructeurs - Loaders::Association.for(object.class, :instructeurs).load(object) - end + def instructeurs + Loaders::Association.for(object.class, :instructeurs).load(object) + end - def self.authorized?(object, context) - authorized_demarche?(object.procedure, context) + def self.authorized?(object, context) + authorized_demarche?(object.procedure, context) + end end end