aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/mail_helper.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:01:31 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:01:31 +0200
commitc3e7abddfb759eecb30cd59f27103fda4c4827dc (patch)
treebf78c34c03456e017cd463963dccbd6f3ee43172 /actionmailer/lib/action_mailer/mail_helper.rb
parent35b3de8021e68649cac963bd82a74cc75d1f60f0 (diff)
downloadrails-c3e7abddfb759eecb30cd59f27103fda4c4827dc.tar.gz
rails-c3e7abddfb759eecb30cd59f27103fda4c4827dc.tar.bz2
rails-c3e7abddfb759eecb30cd59f27103fda4c4827dc.zip
applies new string literal convention in actionmailer/lib
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
Diffstat (limited to 'actionmailer/lib/action_mailer/mail_helper.rb')
-rw-r--r--actionmailer/lib/action_mailer/mail_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/mail_helper.rb b/actionmailer/lib/action_mailer/mail_helper.rb
index 239974e7b1..e04fc08866 100644
--- a/actionmailer/lib/action_mailer/mail_helper.rb
+++ b/actionmailer/lib/action_mailer/mail_helper.rb
@@ -54,7 +54,7 @@ module ActionMailer
sentences = [[]]
text.split.each do |word|
- if sentences.first.present? && (sentences.last + [word]).join(' ').length > len
+ if sentences.first.present? && (sentences.last + [word]).join(" ").length > len
sentences << [word]
else
sentences.last << word