From 6eec42135dc28bd869658182dc5b7553b15cbbfe Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 19 Apr 2023 11:57:19 +0200 Subject: [PATCH] chore(rubocop): fix Rails/DotSeparatedKeys --- app/helpers/dossier_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/dossier_helper.rb b/app/helpers/dossier_helper.rb index dd5b96b95..b94ac46e5 100644 --- a/app/helpers/dossier_helper.rb +++ b/app/helpers/dossier_helper.rb @@ -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