Sha256: 421f0611bd912a536c9002a132595ce9c65e85d50c444d4cd9802b7f8850d0f8

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 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!
      # ActiveRecord::Base.connection_handler.flush_idle_connections!
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fishplate-8.0.0 lib/fishplate/rack.rb
fishplate-7.1.3.0 lib/fishplate/rack.rb
fishplate-7.1.2.2 lib/fishplate/rack.rb
fishplate-7.1.2.1 lib/fishplate/rack.rb