aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/writes/delete.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/writes/delete.rb')
-rw-r--r--lib/arel/relations/writes/delete.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/relations/writes/delete.rb b/lib/arel/relations/writes/delete.rb
index b1ff3bef27..0a04454e7f 100644
--- a/lib/arel/relations/writes/delete.rb
+++ b/lib/arel/relations/writes/delete.rb
@@ -12,8 +12,8 @@ module Arel
].compact.join("\n")
end
- def call(connection = engine)
- connection.delete(to_sql)
+ def call
+ engine.delete(self)
end
end
end