Skip to content

Commit e50050d

Browse files
committed
Remove redefinition of ActionMailer::LogSubscriber#deliver which is no longer necessary because of the removal of Setting.bcc_recipients. (#31035).
git-svn-id: http://svn.redmine.org/redmine/trunk@21197 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent ee64cb5 commit e50050d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

config/initializers/10-patches.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -124,24 +124,6 @@ def deliver!(mail)
124124

125125
ActionMailer::Base.add_delivery_method :tmp_file, DeliveryMethods::TmpFile
126126

127-
# Changes how sent emails are logged
128-
# Rails doesn't log cc and bcc which is misleading when using bcc only (#12090)
129-
module ActionMailer
130-
class LogSubscriber < ActiveSupport::LogSubscriber
131-
def deliver(event)
132-
recipients = [:to, :cc, :bcc].inject(+"") do |s, header|
133-
r = Array.wrap(event.payload[header])
134-
if r.any?
135-
s << "\n #{header}: #{r.join(', ')}"
136-
end
137-
s
138-
end
139-
info("\nSent email \"#{event.payload[:subject]}\" (%1.fms)#{recipients}" % event.duration)
140-
debug(event.payload[:mail])
141-
end
142-
end
143-
end
144-
145127
module ActionController
146128
module MimeResponds
147129
class Collector

0 commit comments

Comments
 (0)