From 14a9d701f70f448f7285b4694de2ad7e0424cb8c Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Fri, 29 Apr 2016 16:32:05 +0200 Subject: [PATCH] If operating on a env variable make sure its there Fix booting the app without OSEM_SMTP_AUTHENTICATION set --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index d4f16683..d2b43a46 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -76,7 +76,7 @@ Osem::Application.configure do port: ENV['OSEM_SMTP_PORT'], user_name: ENV['OSEM_SMTP_USERNAME'], password: ENV['OSEM_SMTP_PASSWORD'], - authentication: ENV['OSEM_SMTP_AUTHENTICATION'].to_sym, + authentication: ENV['OSEM_SMTP_AUTHENTICATION'].try(:to_sym), domain: ENV['OSEM_SMTP_DOMAIN'], enable_starttls_auto: true }