Methods
C
N
Class Public methods
new(app)
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 356
def initialize(app)
  @app = app
end
Instance Public methods
call(env)
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 360
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