Merge pull request #1503 from betagouv/fix_missing_date_creation_association
IdentiteEntreprise: add safe navigator to access to rna information
This commit is contained in:
commit
e3ce4c4f8c
1 changed files with 3 additions and 3 deletions
|
@ -59,10 +59,10 @@
|
|||
%td= entreprise.rna_information.objet
|
||||
%tr
|
||||
%th Date de création :
|
||||
%td= entreprise.rna_information.date_creation.strftime("%d/%m/%Y")
|
||||
%td= entreprise.rna_information.date_creation&.strftime("%d/%m/%Y")
|
||||
%tr
|
||||
%th Date de publication :
|
||||
%td= entreprise.rna_information.date_publication.try(:strftime, "%d/%m/%Y")
|
||||
%td= entreprise.rna_information.date_publication&.strftime("%d/%m/%Y")
|
||||
%tr
|
||||
%th Date de déclaration :
|
||||
%td= entreprise.rna_information.date_declaration.strftime("%d/%m/%Y")
|
||||
%td= entreprise.rna_information.date_declaration&.strftime("%d/%m/%Y")
|
||||
|
|
Loading…
Reference in a new issue