aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/collectors
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-02-13 15:58:58 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-02-13 16:03:32 -0300
commitc2bc569d2d538584cfc081e5775de17cdf2f054b (patch)
tree861da096e3d26abcb17c82b4d9a8c76d5ba9a1a3 /lib/arel/collectors
parentd6af2090b16f7d061aa43913d610c6fada58b7e2 (diff)
downloadrails-c2bc569d2d538584cfc081e5775de17cdf2f054b.tar.gz
rails-c2bc569d2d538584cfc081e5775de17cdf2f054b.tar.bz2
rails-c2bc569d2d538584cfc081e5775de17cdf2f054b.zip
Enable frozen_string_literal in all files in arel
Diffstat (limited to 'lib/arel/collectors')
-rw-r--r--lib/arel/collectors/bind.rb1
-rw-r--r--lib/arel/collectors/plain_string.rb3
-rw-r--r--lib/arel/collectors/sql_string.rb1
3 files changed, 4 insertions, 1 deletions
diff --git a/lib/arel/collectors/bind.rb b/lib/arel/collectors/bind.rb
index 05cd966509..dfa79d1001 100644
--- a/lib/arel/collectors/bind.rb
+++ b/lib/arel/collectors/bind.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
module Arel
module Collectors
class Bind
diff --git a/lib/arel/collectors/plain_string.rb b/lib/arel/collectors/plain_string.rb
index 2505bc376e..1e8d2a2152 100644
--- a/lib/arel/collectors/plain_string.rb
+++ b/lib/arel/collectors/plain_string.rb
@@ -1,8 +1,9 @@
+# frozen_string_literal: true
module Arel
module Collectors
class PlainString
def initialize
- @str = ''
+ @str = ''.dup
end
def value
diff --git a/lib/arel/collectors/sql_string.rb b/lib/arel/collectors/sql_string.rb
index fd2faaef3a..5f42117331 100644
--- a/lib/arel/collectors/sql_string.rb
+++ b/lib/arel/collectors/sql_string.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: true
require 'arel/collectors/plain_string'