diff --git a/lib/neography/rest.rb b/lib/neography/rest.rb index a10b974..05da35c 100644 --- a/lib/neography/rest.rb +++ b/lib/neography/rest.rb @@ -144,7 +144,7 @@ def commit_transaction(tx, statements=[]) end def rollback_transaction(tx) - @transactions.add(tx) + @transactions.rollback(tx) end # nodes