Sha256: c8bd0bfa4add8e11a6c8bd07f3dafd2cafa403d0339195aea80ef8d629888686

Contents?: true

Size: 256 Bytes

Versions: 20

Compression:

Stored size: 256 Bytes

Contents

# frozen_string_literal: true

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

20 entries across 20 versions & 1 rubygems

Version Path
batch-loader-2.0.5 lib/batch_loader/middleware.rb
batch-loader-2.0.4 lib/batch_loader/middleware.rb
batch-loader-2.0.3 lib/batch_loader/middleware.rb
batch-loader-2.0.2 lib/batch_loader/middleware.rb
batch-loader-2.0.1 lib/batch_loader/middleware.rb
batch-loader-2.0.0 lib/batch_loader/middleware.rb
batch-loader-1.5.0 lib/batch_loader/middleware.rb
batch-loader-1.4.1 lib/batch_loader/middleware.rb
batch-loader-1.4.0 lib/batch_loader/middleware.rb
batch-loader-1.3.0 lib/batch_loader/middleware.rb
batch-loader-1.2.2 lib/batch_loader/middleware.rb
batch-loader-1.2.1 lib/batch_loader/middleware.rb
batch-loader-1.2.0 lib/batch_loader/middleware.rb
batch-loader-1.1.1 lib/batch_loader/middleware.rb
batch-loader-1.1.0 lib/batch_loader/middleware.rb
batch-loader-1.0.4 lib/batch_loader/middleware.rb
batch-loader-1.0.3 lib/batch_loader/middleware.rb
batch-loader-1.0.2 lib/batch_loader/middleware.rb
batch-loader-1.0.1 lib/batch_loader/middleware.rb
batch-loader-1.0.0 lib/batch_loader/middleware.rb