Skip to content

Commit

Permalink
Fix method name
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Apr 4, 2024
1 parent bdfa862 commit 3207f1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://puma.io/puma/#clustered-mode>`_):

.. code-block:: ruby
Expand All @@ -901,8 +901,8 @@ parent process (`Puma documentation <https://puma.io/puma/#clustered-mode>`_):
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

Expand Down

0 comments on commit 3207f1b

Please sign in to comment.