Sha256: fd1611590ae5d5a2c856abba0445c01e338e45dfbb66290b65728cff1d3509b1

Contents?: true

Size: 218 Bytes

Versions: 3

Compression:

Stored size: 218 Bytes

Contents

module Fishplate
  class Rack
    def initialize(app)
      @app = app
    end

    def call(env)
      @app.call(env)
    ensure
      ActiveRecord::Base.connection_handler.clear_active_connections!
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fishplate-7.1.0.3 lib/fishplate/rack.rb
fishplate-7.1.0.1 lib/fishplate/rack.rb
fishplate-7.1.0 lib/fishplate/rack.rb