ActionView::Helpers::TextHelper#concat is not recommended for use, and was leading to some confusing results while I was trying to refactor for #642 .
This PR removes concat from the code, except where it was needed in some test cases. (And perhaps there's a way to get rid of it from the test cases, too, but I didn't investigated it.) In the test cases, we now use ActionView::Helpers::TextHelper#concat consistently.
This PR also replaces String#+= with String#<< since the internet says the String#<< is much faster.
ActionView::Helpers::TextHelper#concat
is not recommended for use, and was leading to some confusing results while I was trying to refactor for #642 .This PR removes
concat
from the code, except where it was needed in some test cases. (And perhaps there's a way to get rid of it from the test cases, too, but I didn't investigated it.) In the test cases, we now useActionView::Helpers::TextHelper#concat
consistently.This PR also replaces
String#+=
withString#<<
since the internet says theString#<<
is much faster.