Use headers shorthand in mailers (#31956)

This commit is contained in:
Matt Jankowski 2024-09-19 09:38:32 -04:00 committed by GitHub
parent 6801afa12f
commit 2946a9286b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 18 deletions

View file

@ -16,8 +16,10 @@ class ApplicationMailer < ActionMailer::Base
end
def set_autoreply_headers!
headers['Precedence'] = 'list'
headers['X-Auto-Response-Suppress'] = 'All'
headers['Auto-Submitted'] = 'auto-generated'
headers(
'Auto-Submitted' => 'auto-generated',
'Precedence' => 'list',
'X-Auto-Response-Suppress' => 'All'
)
end
end