From 3207f1b129468d8dd47f3ccb8fa9307c64880af0 Mon Sep 17 00:00:00 2001 From: johnnyshields <27655+johnnyshields@users.noreply.github.com> Date: Fri, 5 Apr 2024 01:08:46 +0900 Subject: [PATCH] Fix method name --- docs/reference/configuration.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/configuration.txt b/docs/reference/configuration.txt index 57067dca38..155fb9cfb3 100644 --- a/docs/reference/configuration.txt +++ b/docs/reference/configuration.txt @@ -892,7 +892,7 @@ Puma ---- Use the ``on_worker_boot`` hook to reconnect clients in the workers and -the ``before_fork`` and ``before_refork`` hooks to close clients in the +the ``before_fork`` and ``on_refork`` hooks to close clients in the parent process (`Puma documentation `_): .. code-block:: ruby @@ -901,8 +901,8 @@ parent process (`Puma documentation `_): Mongoid.disconnect_clients end - # before_refork is required when using Puma's fork_worker option. - before_refork do + # on_refork is required when using Puma's fork_worker option. + on_refork do Mongoid.disconnect_clients end