summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:55:04 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:55:04 +0000
commit83f96f072ed08a948756c36b471d74cc5a0c80fe (patch)
tree07c83c98273f79f4bdc45e40066edd1f1ff99013 /app
parent466a5bd3a832bbe0d46ee496d62f6a9f37783c3c (diff)
downloadredmine-83f96f072ed08a948756c36b471d74cc5a0c80fe.tar.gz
redmine-83f96f072ed08a948756c36b471d74cc5a0c80fe.zip
cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/mailer.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19172 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/mailer.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index ed923ae68..cb2c9f39e 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -578,6 +578,7 @@ class Mailer < ActionMailer::Base
if options[:version] && target_version_id.blank?
raise ActiveRecord::RecordNotFound.new("Couldn't find Version named #{options[:version]}")
end
+
user_ids = options[:users]
scope = Issue.open.where("#{Issue.table_name}.assigned_to_id IS NOT NULL" +
@@ -704,6 +705,7 @@ class Mailer < ActionMailer::Base
def self.deliver_mail(mail)
return false if mail.to.blank? && mail.cc.blank? && mail.bcc.blank?
+
begin
# Log errors when raise_delivery_errors is set to false, Rails does not
mail.raise_delivery_errors = true