Skip to content

Commit

Permalink
Remove ActionMailer
Browse files Browse the repository at this point in the history
This application does not send any mail, so we don't need to be
including or configuring `ActionMailer`.
  • Loading branch information
brucebolt committed Aug 15, 2024
1 parent 844e788 commit e5a4ae7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 31 deletions.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# require "active_record/railtie"
# require "active_storage/engine"
require "action_controller/railtie"
require "action_mailer/railtie"
# require "action_mailer/railtie"
# require "action_mailbox/engine"
# require "action_text/engine"
require "action_view/railtie"
Expand Down
9 changes: 0 additions & 9 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@
config.cache_store = :null_store
end

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false

# Disable caching for Action Mailer templates even if Action Controller
# caching is enabled.
config.action_mailer.perform_caching = false

config.action_mailer.default_url_options = { host: "localhost", port: 3000 }

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

Expand Down
8 changes: 0 additions & 8 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "hmrc_manuals_api_production"

# Disable caching for Action Mailer templates even if Action Controller
# caching is enabled.
config.action_mailer.perform_caching = false

# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
# config.action_mailer.raise_delivery_errors = false

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
config.i18n.fallbacks = true
Expand Down
13 changes: 0 additions & 13 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,6 @@
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false

# Disable caching for Action Mailer templates even if Action Controller
# caching is enabled.
config.action_mailer.perform_caching = false

# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test

# Unlike controllers, the mailer instance doesn't have any context about the
# incoming request so you'll need to provide the :host parameter yourself.
# config.action_mailer.default_url_options = { host: "www.example.com" }

# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr

Expand Down

0 comments on commit e5a4ae7

Please sign in to comment.