gender neutral source comment at app/models/mailer.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11988 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b1b721ff6d
commit
e1ca4a8663
@ -389,7 +389,8 @@ class Mailer < ActionMailer::Base
|
|||||||
'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"
|
'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"
|
||||||
|
|
||||||
# Removes the author from the recipients and cc
|
# Removes the author from the recipients and cc
|
||||||
# if he doesn't want to receive notifications about what he does
|
# if the author does not want to receive notifications
|
||||||
|
# about what the author do
|
||||||
if @author && @author.logged? && @author.pref.no_self_notified
|
if @author && @author.logged? && @author.pref.no_self_notified
|
||||||
headers[:to].delete(@author.mail) if headers[:to].is_a?(Array)
|
headers[:to].delete(@author.mail) if headers[:to].is_a?(Array)
|
||||||
headers[:cc].delete(@author.mail) if headers[:cc].is_a?(Array)
|
headers[:cc].delete(@author.mail) if headers[:cc].is_a?(Array)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user