chore(rubocop): fix Rails/DotSeparatedKeys

This commit is contained in:
Colin Darie 2023-04-19 11:57:19 +02:00
parent 516ffc68ba
commit 6eec42135d
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -84,10 +84,10 @@ module DossierHelper
def deletion_reason_badge(reason)
if reason.present?
status_text = I18n.t(reason, scope: [:activerecord, :attributes, :deleted_dossier, :reason])
status_text = I18n.t(reason, scope: 'activerecord.attributes.deleted_dossier.reason')
status_class = reason.tr('_', '-')
else
status_text = I18n.t(:unknown, scope: [:activerecord, :attributes, :deleted_dossier, :reason])
status_text = I18n.t('activerecord.attributes.deleted_dossier.reason.unknown')
status_class = 'unknown'
end