Browse files

Make sure IdentityMap is cleared after an exception, closes #214

  • Loading branch information...
1 parent 8c1c0f2 commit 7fb58a7777d7a67b20f1d052f9597bcfeca2ee3b @andreasronge andreasronge committed Dec 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/neo4j/rails/rack_middleware.rb
View
1 lib/neo4j/rails/rack_middleware.rb
@@ -32,6 +32,7 @@ def call(env)
status, headers, body = @app.call(env)
[status, headers, Body.new(body, enabled)]
ensure
+ IdentityMap.clear
Neo4j::Rails::Model.close_lucene_connections
Neo4j.threadlocal_ref_node = Neo4j.default_ref_node
end

0 comments on commit 7fb58a7

Please sign in to comment.