2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-01 17:04:09 +02:00
|
|
|
module ConservationDeDonneesHelper
|
|
|
|
def politiques_conservation_de_donnees(procedure)
|
2021-11-11 10:58:13 +01:00
|
|
|
[conservation_dans_ds(procedure)].compact
|
2018-06-01 17:04:09 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def conservation_dans_ds(procedure)
|
|
|
|
if procedure.duree_conservation_dossiers_dans_ds.present?
|
2022-04-25 17:38:30 +02:00
|
|
|
I18n.t('users.procedure_footer.legals.data_retention',
|
|
|
|
duree_conservation_dossiers_dans_ds: procedure.duree_conservation_dossiers_dans_ds)
|
2018-06-01 17:04:09 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|