demarches-normaliennes/app/helpers/conservation_de_donnees_helper.rb
2024-09-19 14:15:51 +02:00

16 lines
458 B
Ruby

# frozen_string_literal: true
module ConservationDeDonneesHelper
def politiques_conservation_de_donnees(procedure)
[conservation_dans_ds(procedure)].compact
end
private
def conservation_dans_ds(procedure)
if procedure.duree_conservation_dossiers_dans_ds.present?
I18n.t('users.procedure_footer.legals.data_retention',
duree_conservation_dossiers_dans_ds: procedure.duree_conservation_dossiers_dans_ds)
end
end
end