aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/collectors/plain_string.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/collectors/plain_string.rb')
-rw-r--r--activerecord/lib/arel/collectors/plain_string.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/lib/arel/collectors/plain_string.rb b/activerecord/lib/arel/collectors/plain_string.rb
index 1e8d2a2152..b98802c44a 100644
--- a/activerecord/lib/arel/collectors/plain_string.rb
+++ b/activerecord/lib/arel/collectors/plain_string.rb
@@ -1,16 +1,17 @@
# frozen_string_literal: true
+
module Arel
module Collectors
class PlainString
def initialize
- @str = ''.dup
+ @str = "".dup
end
def value
@str
end
- def << str
+ def <<(str)
@str << str
self
end