class ActiveRecord::ConnectionAdapters::ConnectionManagement
def call(env)
def call(env) @app.call(env) ensure # Don't return connection (and peform implicit rollback) if # this request is a part of integration test unless env.key?("rack.test") ActiveRecord::Base.clear_active_connections! end end
def initialize(app)
def initialize(app) @app = app end