fix(dossier): rails 7 deprecation warning about sum of non numeric values

This commit is contained in:
Colin Darie 2023-11-10 13:23:35 +01:00
parent 65feaa37e3
commit 148611d595
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -619,11 +619,7 @@ class Dossier < ApplicationRecord
end
def expiration_date_with_extention
[
expiration_date_reference,
conservation_extension,
procedure.duree_conservation_dossiers_dans_ds.months
].sum
expiration_date_reference + conservation_extension + procedure.duree_conservation_dossiers_dans_ds.months
end
def expiration_notification_date