Sha256: a7fedfc04a274a672c61d7ae0a3e1175d968e386d36648e2d5c652b1059d3b83

Contents?: true

Size: 225 Bytes

Versions: 1

Compression:

Stored size: 225 Bytes

Contents

class BatchLoader
  class Middleware
    def initialize(app)
      @app = app
    end

    def call(env)
      begin
        @app.call(env)
      ensure
        BatchLoader::Executor.clear_current
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
batch-loader-0.3.0 lib/batch_loader/middleware.rb