diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-17 03:29:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-17 03:29:15 +0000 |
commit | 24d76e94ef743d4dcb7573eb2b3cf49bc9395d02 (patch) | |
tree | 2f0a0d5fbed53ee5240075d419ffd6b18425cae4 /config/initializers/10-patches.rb | |
parent | 02b4449414748ceb0198a581496d4ff7fed69386 (diff) | |
download | redmine-24d76e94ef743d4dcb7573eb2b3cf49bc9395d02.tar.gz redmine-24d76e94ef743d4dcb7573eb2b3cf49bc9395d02.zip |
Support frozen_string_literal in config/initializers/10-patches.rb (#26561).
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17983 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers/10-patches.rb')
-rw-r--r-- | config/initializers/10-patches.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 3b2bd3a80..e0559903b 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -127,7 +127,7 @@ ActionMailer::Base.add_delivery_method :tmp_file, DeliveryMethods::TmpFile module ActionMailer class LogSubscriber < ActiveSupport::LogSubscriber def deliver(event) - recipients = [:to, :cc, :bcc].inject("") do |s, header| + recipients = [:to, :cc, :bcc].inject(+"") do |s, header| r = Array.wrap(event.payload[header]) if r.any? s << "\n #{header}: #{r.join(', ')}" |