aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/crud.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/crud.rb')
-rw-r--r--lib/arel/crud.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb
index 6861ff016c..2bf5f85823 100644
--- a/lib/arel/crud.rb
+++ b/lib/arel/crud.rb
@@ -7,6 +7,7 @@ module Arel
um = UpdateManager.new @engine
if String === values
+ values = SqlLiteral.new values
um.table @ctx.froms.last
else
um.table values.first.first.relation