mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Change map
to map!
to save extra array creation on new array
This commit is contained in:
parent
0df9149fd6
commit
78c176e2fa
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ module ActionView
|
|||
html_options, name = name, nil if block_given?
|
||||
html_options = (html_options || {}).stringify_keys
|
||||
|
||||
extras = %w{ cc bcc body subject }.map { |item|
|
||||
extras = %w{ cc bcc body subject }.map! { |item|
|
||||
option = html_options.delete(item) || next
|
||||
"#{item}=#{Rack::Utils.escape_path(option)}"
|
||||
}.compact
|
||||
|
|
Loading…
Reference in a new issue