summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-07-13 08:13:34 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-07-13 08:13:34 +0000
commita74d55edd99a4bae23e7d9cbd76136ffa7707ccf (patch)
tree1b1887acd617ad9c0380b53082b881d2943f3c8e /app
parent8ff33ac9f7819ea157f3045a75ea04963504f35d (diff)
downloadredmine-a74d55edd99a4bae23e7d9cbd76136ffa7707ccf.tar.gz
redmine-a74d55edd99a4bae23e7d9cbd76136ffa7707ccf.zip
Removed dead code.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12011 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/mailer.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index 83dbd9fc6..6e07d61f7 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -297,31 +297,6 @@ class Mailer < ActionMailer::Base
:subject => 'Redmine test'
end
- # Overrides default deliver! method to prevent from sending an email
- # with no recipient, cc or bcc
- def deliver!(mail = @mail)
- set_language_if_valid @initial_language
- return false if (recipients.nil? || recipients.empty?) &&
- (cc.nil? || cc.empty?) &&
- (bcc.nil? || bcc.empty?)
-
-
- # Log errors when raise_delivery_errors is set to false, Rails does not
- raise_errors = self.class.raise_delivery_errors
- self.class.raise_delivery_errors = true
- begin
- return super(mail)
- rescue Exception => e
- if raise_errors
- raise e
- elsif mylogger
- mylogger.error "The following error occured while sending email notification: \"#{e.message}\". Check your configuration in config/configuration.yml."
- end
- ensure
- self.class.raise_delivery_errors = raise_errors
- end
- end
-
# Sends reminders to issue assignees
# Available options:
# * :days => how many days in the future to remind about (defaults to 7)