Sha256: 7098c3243dd76c60de234fd1bf391e9c6ae0f43e24788206b929c217bd8f69b0
Contents?: true
Size: 390 Bytes
Versions: 26
Compression:
Stored size: 390 Bytes
Contents
module Neo4j module Rails class LuceneConnectionCloser def initialize(app) @app = app end def call(env) @app.call(env) ensure Thread.current[:neo4j_lucene_connection].each {|hits| hits.close} if Thread.current[:neo4j_lucene_connection] Thread.current[:neo4j_lucene_connection] = nil end end end end Thread.current
Version data entries
26 entries across 26 versions & 1 rubygems