method
close
v3.1.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionManagement::Proxy
close()public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 461
def close
body.close if body.respond_to?(:close)
# Don't return connection (and perform implicit rollback) if
# this request is a part of integration test
ActiveRecord::Base.clear_active_connections! unless testing
end