diff options
author | ojab <ojab@ojab.ru> | 2016-08-31 15:20:36 +0000 |
---|---|---|
committer | ojab <ojab@ojab.ru> | 2016-08-31 15:28:14 +0000 |
commit | 685825cdfc3c5595b504ae5dd0fc45638c47aeec (patch) | |
tree | 4b17c39aa2a101dadcd61465b47242587d5f3e01 /lib/arel/visitors/oracle.rb | |
parent | 4e0ce3d6a5a6db0d59661733c65dff84b25c8384 (diff) | |
download | rails-685825cdfc3c5595b504ae5dd0fc45638c47aeec.tar.gz rails-685825cdfc3c5595b504ae5dd0fc45638c47aeec.tar.bz2 rails-685825cdfc3c5595b504ae5dd0fc45638c47aeec.zip |
Freeze all the strings in visitors
Diffstat (limited to 'lib/arel/visitors/oracle.rb')
-rw-r--r-- | lib/arel/visitors/oracle.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/visitors/oracle.rb b/lib/arel/visitors/oracle.rb index 875b0e5b6a..99075b3e27 100644 --- a/lib/arel/visitors/oracle.rb +++ b/lib/arel/visitors/oracle.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Arel module Visitors class Oracle < Arel::Visitors::ToSql @@ -125,7 +126,7 @@ module Arel array[i] << ',' << part else # to ensure that array[i] will be String and not Arel::Nodes::SqlLiteral - array[i] = '' << part + array[i] = part.to_s end i += 1 if array[i].count('(') == array[i].count(')') end |