Link Dossier and GroupeInstructeur

This commit is contained in:
simon lehericey 2019-08-22 17:58:31 +02:00
parent 940813a3ab
commit 3cc8f0c792
12 changed files with 44 additions and 31 deletions

View file

@ -4,6 +4,6 @@ class IndividualSerializer < ActiveModel::Serializer
attribute :birthdate, key: :date_naissance, if: :include_birthdate?
def include_birthdate?
object&.dossier&.procedure&.ask_birthday
object&.dossier&.groupe_instructeur&.procedure&.ask_birthday
end
end