instance method
checkin
Ruby on Rails 4.2.9
Since v2.2.3Signature
checkin(conn)
Check-in a database connection back into the pool, indicating that you no longer need this connection.
conn: an AbstractAdapter object, which was obtained by earlier by calling checkout on this pool.
Parameters
-
connreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 360
def checkin(conn)
synchronize do
owner = conn.owner
conn._run_checkin_callbacks do
conn.expire
end
release conn, owner
@available.add conn
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 360
· View on GitHub
· Improve this page
· Find usages on GitHub