Parent

Methods

Files

Class/Module Index [+]

Quicksearch

ActiveRecord::ConnectionAdapters::ConnectionManagement

Public Class Methods

new(app) click to toggle source
# File lib/active_record/connection_adapters/abstract/connection_pool.rb, line 349
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/active_record/connection_adapters/abstract/connection_pool.rb, line 353
def call(env)
  @app.call(env)
ensure
  # Don't return connection (and perform implicit rollback) if
  # this request is a part of integration test
  unless env.key?("rack.test")
    ActiveRecord::Base.clear_active_connections!
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.