From f8ace8f9e063861d66558f43b936c92ae85a0e96 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 16 Mar 2011 22:19:35 +0000 Subject: [PATCH] Cope with MESSAGES_DOMAIN not being defined --- app/models/notifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 059377639..03923e9e7 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -116,7 +116,7 @@ class Notifier < ActionMailer::Base private def from_address(name, type, id, digest) - if domain = MESSAGES_DOMAIN + if Object.const_defined?(:MESSAGES_DOMAIN) and domain = MESSAGES_DOMAIN "#{name} <#{type}-#{id}-#{digest[0,6]}@#{domain}>" else EMAIL_FROM -- 2.43.2