Fix Rails/I18nLocaleTexts
cop (#27779)
This commit is contained in:
parent
c875dfc90b
commit
c9204b792c
3 changed files with 17 additions and 11 deletions
|
@ -427,7 +427,11 @@ namespace :mastodon do
|
|||
from: env['SMTP_FROM_ADDRESS'],
|
||||
}
|
||||
|
||||
mail = ActionMailer::Base.new.mail to: send_to, subject: 'Test', body: 'Mastodon SMTP configuration works!'
|
||||
mail = ActionMailer::Base.new.mail(
|
||||
to: send_to,
|
||||
subject: 'Test', # rubocop:disable Rails/I18nLocaleTexts
|
||||
body: 'Mastodon SMTP configuration works!'
|
||||
)
|
||||
mail.deliver
|
||||
break
|
||||
rescue => e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue