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

Version Path
neo4j-1.0.0.beta.26-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.25-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.24-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.23-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.22-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.21-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.20 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.19 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.18 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.17 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.16 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.15 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.14 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.13 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.12 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.11 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.10 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.9 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.8 lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.7 lib/neo4j/rails/lucene_connection_closer.rb