diff options
Diffstat (limited to 'lib/arel/crud.rb')
-rw-r--r-- | lib/arel/crud.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb index 7f78acef84..6861ff016c 100644 --- a/lib/arel/crud.rb +++ b/lib/arel/crud.rb @@ -22,5 +22,12 @@ module Arel im.insert values @engine.connection.execute im.to_sql end + + def delete + dm = DeleteManager.new @engine + dm.wheres = @ctx.wheres + dm.from @ctx.froms.last + @engine.connection.execute dm.to_sql + end end end |