chore(rubocop): fix Rails/DotSeparatedKeys
This commit is contained in:
parent
516ffc68ba
commit
6eec42135d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue