diff options
author | Go MAEDA <maeda@farend.jp> | 2021-08-19 13:53:07 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-08-19 13:53:07 +0000 |
commit | e50050dd8ccc213db0d6de6329765c530217b8b1 (patch) | |
tree | 55986bc7fc59def69771b5de36ef46e23cf0b3f3 /config/initializers/10-patches.rb | |
parent | ee64cb5cb1b95ed42ed3ba3b1ea80a9efd428eee (diff) | |
download | redmine-e50050dd8ccc213db0d6de6329765c530217b8b1.tar.gz redmine-e50050dd8ccc213db0d6de6329765c530217b8b1.zip |
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
Diffstat (limited to 'config/initializers/10-patches.rb')
-rw-r--r-- | config/initializers/10-patches.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 643d06b7e..5788091b5 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -124,24 +124,6 @@ end ActionMailer::Base.add_delivery_method :tmp_file, DeliveryMethods::TmpFile -# Changes how sent emails are logged -# Rails doesn't log cc and bcc which is misleading when using bcc only (#12090) -module ActionMailer - class LogSubscriber < ActiveSupport::LogSubscriber - def deliver(event) - recipients = [:to, :cc, :bcc].inject(+"") do |s, header| - r = Array.wrap(event.payload[header]) - if r.any? - s << "\n #{header}: #{r.join(', ')}" - end - s - end - info("\nSent email \"#{event.payload[:subject]}\" (%1.fms)#{recipients}" % event.duration) - debug(event.payload[:mail]) - end - end -end - module ActionController module MimeResponds class Collector |