fix(dossier): rails 7 deprecation warning about sum of non numeric values
This commit is contained in:
parent
65feaa37e3
commit
148611d595
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue