Permalink
Browse files

Merge pull request #11717 from rajcybage/fix_map

map => map! for stopping extra array creation
  • Loading branch information...
2 parents 3152bb0 + 9384810 commit db7e912138cd13e8727c22d24df077627b8612e4 @rafaelfranca rafaelfranca committed Aug 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionmailer/lib/action_mailer/mail_helper.rb
@@ -50,7 +50,7 @@ def format_paragraph(text, len = 72, indent = 2)
end
indentation = " " * indent
- sentences.map { |sentence|
+ sentences.map! { |sentence|
"#{indentation}#{sentence.join(' ')}"
}.join "\n"
end

0 comments on commit db7e912

Please sign in to comment.