Permalink
Browse files

Add an inTransaction around the CRUDify delete

  • Loading branch information...
1 parent 003782f commit c10470b875c44ef39e9183ee5c7bfff464536573 @davewhittaker davewhittaker committed Nov 2, 2012
@@ -58,7 +58,9 @@ trait CRUDify[K, T <: Record[T] with KeyedEntity[K]] extends Crudify {
protected class SquerylBridge(in: TheCrudType) extends CrudBridge {
- def delete_! = table.delete(in.id)
+ def delete_! = inTransaction {
+ table.delete(in.id)
+ }
def save = {
if (in.isPersisted) {

0 comments on commit c10470b

Please sign in to comment.