From c4bd6bc8ca00c176097cb86a5958ed0c702d497c Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Tue, 2 Aug 2022 12:54:22 +1000 Subject: [PATCH] Keep rubocop happy --- .rubocop_todo.yml | 6 ------ app/mailers/alert_mailer.rb | 2 +- app/mailers/application_mailer.rb | 4 ++++ 3 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 app/mailers/application_mailer.rb diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index cd628fcca..5c829adfa 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -55,12 +55,6 @@ RSpec/VoidExpect: Exclude: - 'spec/lib/morph/docker_runner_spec.rb' -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Rails/ApplicationMailer: - Exclude: - - 'app/mailers/alert_mailer.rb' - # Offense count: 1 # Configuration parameters: EnforcedStyle. # SupportedStyles: slashes, arguments diff --git a/app/mailers/alert_mailer.rb b/app/mailers/alert_mailer.rb index 48c6806ea..0d6926c76 100644 --- a/app/mailers/alert_mailer.rb +++ b/app/mailers/alert_mailer.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class AlertMailer < ActionMailer::Base +class AlertMailer < ApplicationMailer include ActionView::Helpers::TextHelper include ActionView::Helpers::AssetUrlHelper add_template_helper UsersHelper diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 000000000..26148f2d6 --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class ApplicationMailer < ActionMailer::Base +end