Commit daeadefa authored by maeda's avatar maeda

Support frozen_string_literal in config/initializers/10-patches.rb (#26561).

Patch by Pavel Rosický.


git-svn-id: https://svn.redmine.org/redmine/trunk@17983 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 75dc2b6b
......@@ -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(', ')}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment