Link Dossier and GroupeInstructeur
This commit is contained in:
parent
940813a3ab
commit
3cc8f0c792
12 changed files with 44 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue