From 963c9308147613012c8bdd9832aec360c2023418 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 24 Dec 2010 15:48:33 -0700 Subject: requiring that the primary key be set on the UpdateManager so that databases which do not support UPDATE with LIMIT will work --- lib/arel/crud.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/arel/crud.rb') diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb index ec58734456..e6b1cd9675 100644 --- a/lib/arel/crud.rb +++ b/lib/arel/crud.rb @@ -6,7 +6,7 @@ module Arel um = UpdateManager.new @engine if Nodes::SqlLiteral === values - relation = @ctx.froms + relation = @ctx.from else relation = values.first.first.relation end -- cgit v1.2.3