提交 6aa055f5 编写于 作者: V Vipul A M

Remove deprecated calls to `delete` with preference to using `compile_delete`...

Remove deprecated calls to `delete` with preference to using `compile_delete` and then calling `to_sql` on the resulting object to execute the SQL
上级 e0d3bcb6
......@@ -59,14 +59,5 @@ def compile_delete
dm
end
def delete
if $VERBOSE
warn <<-eowarn
delete (#{caller.first}) is deprecated and will be removed in Arel 4.0.0. Please
switch to `compile_delete`
eowarn
end
@engine.connection.delete compile_delete.to_sql, 'AREL'
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册