From e3f107af4ce81c6cdc3dcc33f0dae5aef8c5429a Mon Sep 17 00:00:00 2001 From: Roman Sokhan Date: Tue, 2 May 2017 14:58:46 +0300 Subject: [PATCH] Remove dependency from ActionMailer --- spec/example_app/config/environments/development.rb | 5 ----- spec/example_app/config/environments/staging.rb | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/spec/example_app/config/environments/development.rb b/spec/example_app/config/environments/development.rb index 683835e3b8..29a737614e 100644 --- a/spec/example_app/config/environments/development.rb +++ b/spec/example_app/config/environments/development.rb @@ -13,9 +13,6 @@ config.consider_all_requests_local = true config.action_controller.perform_caching = false - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = true - # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log @@ -38,6 +35,4 @@ # Raises error for missing translations config.action_view.raise_on_missing_translations = true - - config.action_mailer.default_url_options = { host: "localhost:3000" } end diff --git a/spec/example_app/config/environments/staging.rb b/spec/example_app/config/environments/staging.rb index d0e0f88c6e..d89e30cf11 100644 --- a/spec/example_app/config/environments/staging.rb +++ b/spec/example_app/config/environments/staging.rb @@ -1,11 +1 @@ require_relative "production" - -Mail.register_interceptor( - RecipientInterceptor.new(ENV.fetch("EMAIL_RECIPIENTS")) -) - -Rails.application.configure do - # ... - - config.action_mailer.default_url_options = { host: ENV.fetch("HOST") } -end