lib/neo4j/shared/callbacks.rb in neo4j-8.0.0.rc.3 vs lib/neo4j/shared/callbacks.rb in neo4j-8.0.0.rc.4
- old
+ new
@@ -22,10 +22,10 @@
tx = Neo4j::ActiveBase.new_transaction
run_callbacks(:destroy) { super }
rescue
@_deleted = false
@attributes = @attributes.dup
- tx.mark_failed
+ tx.mark_failed if tx
raise
ensure
tx.close if tx
end