aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-05-13 09:20:19 +0530
committerVipul A M <vipulnsward@gmail.com>2013-05-13 09:20:19 +0530
commit1ed6ff1006fb5fd816b8b0267754b3113828e918 (patch)
tree0d86d0cbbf9a74c0efa2f8ed07379af835a89277 /actionmailer/lib
parent42da93ca303b1547c4e63bfd2245339be0ce0672 (diff)
downloadrails-1ed6ff1006fb5fd816b8b0267754b3113828e918.tar.gz
rails-1ed6ff1006fb5fd816b8b0267754b3113828e918.tar.bz2
rails-1ed6ff1006fb5fd816b8b0267754b3113828e918.zip
Extract variable out of loop
Diffstat (limited to 'actionmailer/lib')
-rw-r--r--actionmailer/lib/action_mailer/mail_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/mail_helper.rb b/actionmailer/lib/action_mailer/mail_helper.rb
index ec84256491..d63d3b94a5 100644
--- a/actionmailer/lib/action_mailer/mail_helper.rb
+++ b/actionmailer/lib/action_mailer/mail_helper.rb
@@ -46,8 +46,9 @@ module ActionMailer
end
end
+ indentation = " " * indent
sentences.map { |sentence|
- "#{" " * indent}#{sentence.join(' ')}"
+ "#{indentation}#{sentence.join(' ')}"
}.join "\n"
end
end