instance method
release_connection
Ruby on Rails 2.2.3
Since v2.2.3Signature
release_connection()
Signal that the thread is finished with the current connection. #release_connection releases the connection-thread association and returns the connection to the pool.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 105
def release_connection
conn = @reserved_connections.delete(current_connection_id)
checkin conn if conn
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 105
· View on GitHub
· Improve this page
· Find usages on GitHub