aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/crud.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-23 13:41:34 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-23 13:41:34 -0700
commit0b0609569bc37da4343c955f78e9ab8d6031ff4f (patch)
tree33aac9e7b8d0d0886fedfdfe539964fb0e725bc2 /lib/arel/crud.rb
parent8966434f2a0d7aaff5fdea26b40dc37e89fee239 (diff)
downloadrails-0b0609569bc37da4343c955f78e9ab8d6031ff4f.tar.gz
rails-0b0609569bc37da4343c955f78e9ab8d6031ff4f.tar.bz2
rails-0b0609569bc37da4343c955f78e9ab8d6031ff4f.zip
delete delegates to the connection
Diffstat (limited to 'lib/arel/crud.rb')
-rw-r--r--lib/arel/crud.rb2
1 files changed, 1 insertions, 1 deletions
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