Use ENV.fetch in views, fixes rubocop haml-lint issue (#27527)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2023-10-24 09:30:14 +00:00
1 parent 4fdc548fa5
commit e923bb9ec9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
- if self_destruct?
.flash-message.warning
= t('auth.status.self_destruct', domain: ENV['LOCAL_DOMAIN'])
= t('auth.status.self_destruct', domain: ENV.fetch('LOCAL_DOMAIN'))
- else
= render partial: 'status', locals: { user: @user, strikes: @strikes }
+1 -1
View File
@@ -3,7 +3,7 @@
.simple_form
%h1.title= t('self_destruct.title')
%p.lead= t('self_destruct.lead_html', domain: ENV['LOCAL_DOMAIN'])
%p.lead= t('self_destruct.lead_html', domain: ENV.fetch('LOCAL_DOMAIN'))
.form-footer
%ul.no-list