instance method
checkin
Ruby on Rails 4.0.13
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 367
def checkin(conn)
synchronize do
conn.run_callbacks :checkin do
conn.expire
end
release conn
@available.add conn
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 367
· View on GitHub
· Improve this page
· Find usages on GitHub