Commit 8c727a1

mo khan <mo@mokhan.ca>
2017-02-18 22:19:04
add default if emails are missing.
1 parent 69781c3
Changed files (1)
config
environments
config/environments/production.rb
@@ -103,6 +103,6 @@ Rails.application.configure do
     deliver_with: :deliver_later, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now
     email_prefix: "[PRODUCTION] ",
     sender_address: %{"notifier" <notifier@stronglifters.com>},
-    exception_recipients: ENV['EXCEPTION_NOTIFICATION_EMAILS'].split(',').join(' ') %w{mo@mokhan.ca}
+    exception_recipients: ENV.fetch('EXCEPTION_NOTIFICATION_EMAILS', '').split(',').join(' ') %w{mo@mokhan.ca}
   }
 end