[GraphQL] allow to query dossiers by groupe instructeur

This commit is contained in:
Paul Chavard 2020-04-08 19:30:16 +02:00
parent 7e806f191c
commit 32f783142c
6 changed files with 149 additions and 0 deletions

View file

@ -12,4 +12,5 @@ class GroupeInstructeur < ApplicationRecord
before_validation -> { label&.strip! }
scope :without_group, -> (group) { where.not(id: group) }
scope :for_api_v2, -> { includes(procedure: [:administrateurs]) }
end