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:
LeSim 2018-02-28 15:40:31 +01:00 committed by GitHub
commit e3ce4c4f8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")