diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-02-14 12:11:39 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 12:11:39 -0300 |
commit | 208fe3690d840d0ee65b1395a891886e58fd3f4b (patch) | |
tree | 861da096e3d26abcb17c82b4d9a8c76d5ba9a1a3 /lib/arel/collectors | |
parent | d6af2090b16f7d061aa43913d610c6fada58b7e2 (diff) | |
parent | c2bc569d2d538584cfc081e5775de17cdf2f054b (diff) | |
download | rails-208fe3690d840d0ee65b1395a891886e58fd3f4b.tar.gz rails-208fe3690d840d0ee65b1395a891886e58fd3f4b.tar.bz2 rails-208fe3690d840d0ee65b1395a891886e58fd3f4b.zip |
Merge pull request #471 from rails/frozen-string-literal
Enable frozen_string_literal in all files in arel
Diffstat (limited to 'lib/arel/collectors')
-rw-r--r-- | lib/arel/collectors/bind.rb | 1 | ||||
-rw-r--r-- | lib/arel/collectors/plain_string.rb | 3 | ||||
-rw-r--r-- | lib/arel/collectors/sql_string.rb | 1 |
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' |