From 0b0609569bc37da4343c955f78e9ab8d6031ff4f Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 23 Aug 2010 13:41:34 -0700 Subject: delete delegates to the connection --- 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 ac5f70673b..b1269bd1da 100644 --- a/lib/arel/crud.rb +++ b/lib/arel/crud.rb @@ -27,7 +27,7 @@ module Arel dm = DeleteManager.new @engine dm.wheres = @ctx.wheres dm.from @ctx.froms.last - @engine.connection.execute dm.to_sql + @engine.connection.delete dm.to_sql, 'AREL' end end end -- cgit v1.2.3