Skip to content

Commit

Permalink
inherit ApplicationMailer instead
Browse files Browse the repository at this point in the history
  • Loading branch information
eitoball committed Sep 27, 2022
1 parent efc7aaa commit 32e61c5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ Rails/ActiveRecordCallbacksOrder:
Rails/ApplicationController:
Exclude:
- app/controllers/api_docs_controller.rb
Rails/ApplicationMailer:
Exclude:
- app/mailers/notifications.rb
- app/mailers/reminders.rb
Rails/ApplicationRecord:
Exclude:
- app/models/admin.rb
Expand Down
4 changes: 4 additions & 0 deletions app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class ApplicationMailer < ActionMailer::Base
end
2 changes: 1 addition & 1 deletion app/mailers/notifications.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class Notifications < ActionMailer::Base
class Notifications < ApplicationMailer
default from: 'api-notifications@safecast.org'
default_url_options[:locale] = 'en-US'

Expand Down
2 changes: 1 addition & 1 deletion app/mailers/reminders.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class Reminders < ActionMailer::Base
class Reminders < ApplicationMailer
default from: 'mailer@safecast.org'
default_url_options[:locale] = 'en-US'

Expand Down

0 comments on commit 32e61c5

Please sign in to comment.