From 867d2f4faba44d3bc3da5c28629af617d09a82f3 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Thu, 7 Aug 2014 14:06:34 +0300 Subject: [PATCH] Specify default ActionMailer host for dev and test --- config/environments/development.rb | 3 +++ config/environments/test.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index ddf0e90..a4f6438 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -16,6 +16,9 @@ Rails.application.configure do # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false + # Use localhost for default host + config.action_mailer.default_url_options = {host: 'localhost:3000'} + # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log diff --git a/config/environments/test.rb b/config/environments/test.rb index 053f5b6..4e03964 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -31,6 +31,9 @@ Rails.application.configure do # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test + # Use localhost for default host + config.action_mailer.default_url_options = {host: 'localhost:3000'} + # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr