lib/heliodor/query.rb in heliodor-0.1.0 vs lib/heliodor/query.rb in heliodor-0.1.1
- old
+ new
@@ -123,14 +123,15 @@
'dat2' => dat2
}
self
end
- # Deletes current table. WARNING: writes changes to database
+ # Deletes matching items
# @return [self]
- def delete
+ def delete(dat = {})
actions << {
- 'type' => 'delete'
+ 'type' => 'delete',
+ 'dat' => dat
}
self
end
# Ends query and processes it