PERF: Don't create unnecessary objects
This commit is contained in:
parent
10249d7b77
commit
4920312643
|
@ -248,7 +248,7 @@ module ActionMailer
|
|||
else
|
||||
ctype, *attrs = @content_type.split(/;\s*/)
|
||||
attrs = Hash[attrs.map { |attr| attr.split(/\=/, 2) }]
|
||||
[ctype, {"charset" => @charset}.merge(attrs)]
|
||||
[ctype, {"charset" => @charset}.merge!(attrs)]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue