mirror of
https://github.com/redmine/redmine.git
synced 2025-12-17 22:10:27 +01:00
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
This commit is contained in:
@@ -127,7 +127,7 @@ ActionMailer::Base.add_delivery_method :tmp_file, DeliveryMethods::TmpFile
|
|||||||
module ActionMailer
|
module ActionMailer
|
||||||
class LogSubscriber < ActiveSupport::LogSubscriber
|
class LogSubscriber < ActiveSupport::LogSubscriber
|
||||||
def deliver(event)
|
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])
|
r = Array.wrap(event.payload[header])
|
||||||
if r.any?
|
if r.any?
|
||||||
s << "\n #{header}: #{r.join(', ')}"
|
s << "\n #{header}: #{r.join(', ')}"
|
||||||
|
|||||||
Reference in New Issue
Block a user