Sha256: ad37f4ce6e36cdffdb68f52d711d88ac60bef89cc02f8a0732cd19a99ebf81cb

Contents?: true

Size: 270 Bytes

Versions: 7

Compression:

Stored size: 270 Bytes

Contents

module Neo4j
  module Rails
    class LuceneConnectionCloser
      def initialize(app)
        @app = app
      end

      def call(env)
        @app.call(env)
      ensure
        Neo4j::Rails::Model.close_lucene_connections
      end
    end
  end

end

Thread.current

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
neo4j-1.0.0-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.32-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.31-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.30-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.29-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.28-java lib/neo4j/rails/lucene_connection_closer.rb
neo4j-1.0.0.beta.27-java lib/neo4j/rails/lucene_connection_closer.rb