aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-06-01 21:18:38 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-06-01 21:18:38 -0300
commitaf6fe7fcd0650465616aedf1ec5cdb9d1b67203d (patch)
treea8d4aaef2eeba5debc9f507052278fe0179ea1d7 /lib
parent6a7e94ae5c29542aa3b3e33a7fc77a1546ec793f (diff)
parente5772a1f56568547ca72ad053cb812cd22dbd466 (diff)
downloadrails-af6fe7fcd0650465616aedf1ec5cdb9d1b67203d.tar.gz
rails-af6fe7fcd0650465616aedf1ec5cdb9d1b67203d.tar.bz2
rails-af6fe7fcd0650465616aedf1ec5cdb9d1b67203d.zip
Merge pull request #283 from vipulnsward/rm-values
Remove unused values variable
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/visitors/to_sql.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb
index 28c4bd8bfa..a1dee43cab 100644
--- a/lib/arel/visitors/to_sql.rb
+++ b/lib/arel/visitors/to_sql.rb
@@ -103,9 +103,7 @@ module Arel
collector << "UPDATE "
collector = visit o.relation, collector
- values = false
unless o.values.empty?
- values = true
collector << " SET "
collector = inject_join o.values, collector, ", "
end