Skip to content

Commit

Permalink
Remove dependency from ActionMailer (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
pustomytnyk authored and BenMorganIO committed May 2, 2017
1 parent f292aff commit 23425af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions spec/example_app/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
10 changes: 0 additions & 10 deletions spec/example_app/config/environments/staging.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 23425af

Please sign in to comment.