From 373313b12aeaa682af8ad335714d468a7ad4b8bf Mon Sep 17 00:00:00 2001 From: "Hush Now, Quiet Now" Date: Mon, 19 Feb 2024 20:16:54 -0800 Subject: [PATCH] Remove Action Mailer/Mailbox --- app/mailers/application_mailer.rb | 6 ------ config/application.rb | 14 +++++++++++++- config/environments/cypress.rb | 6 +++--- config/environments/development.rb | 8 -------- config/environments/production.rb | 9 --------- config/environments/test.rb | 10 ---------- 6 files changed, 16 insertions(+), 37 deletions(-) delete mode 100644 app/mailers/application_mailer.rb diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb deleted file mode 100644 index d84cb6e7..00000000 --- a/app/mailers/application_mailer.rb +++ /dev/null @@ -1,6 +0,0 @@ -# frozen_string_literal: true - -class ApplicationMailer < ActionMailer::Base - default from: 'from@example.com' - layout 'mailer' -end diff --git a/config/application.rb b/config/application.rb index 64a176fd..4c72d7b3 100644 --- a/config/application.rb +++ b/config/application.rb @@ -2,7 +2,19 @@ require_relative 'boot' -require 'rails/all' +require 'rails' + +require 'action_cable/engine' +# require "active_storage/engine" +require 'action_controller/railtie' +# require "action_mailer/railtie" +# require "action_mailbox/engine" +# require "action_text/engine" +require 'action_view/railtie' +require 'active_job/railtie' +require 'active_model/railtie' +require 'active_record/railtie' +# require "rails/test_unit/railtie" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. diff --git a/config/environments/cypress.rb b/config/environments/cypress.rb index 10690609..acbf91e7 100644 --- a/config/environments/cypress.rb +++ b/config/environments/cypress.rb @@ -31,14 +31,14 @@ config.action_controller.allow_forgery_protection = false # Store uploaded files on the local file system in a temporary directory - config.active_storage.service = :test + # config.active_storage.service = :test - config.action_mailer.perform_caching = false + # 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 + # config.action_mailer.delivery_method = :test # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr diff --git a/config/environments/development.rb b/config/environments/development.rb index afc4ac64..fcfce3a1 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -35,14 +35,6 @@ config.cache_store = :null_store end - # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = :local - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - config.action_mailer.perform_caching = false - # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log diff --git a/config/environments/production.rb b/config/environments/production.rb index 1e654042..f293f287 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -35,9 +35,6 @@ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX - # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = :local - # Mount Action Cable outside main process or domain. # config.action_cable.mount_path = nil # config.action_cable.url = "wss://example.com/cable" @@ -70,12 +67,6 @@ # config.active_job.queue_adapter = :resque # config.active_job.queue_name_prefix = "lot_casting_atemi_production" - 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 diff --git a/config/environments/test.rb b/config/environments/test.rb index ea111ab7..be30150a 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -36,16 +36,6 @@ # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false - # Store uploaded files on the local file system in a temporary directory. - config.active_storage.service = :test - - 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 - # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr