1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Merge pull request #2266 from rafaelfranca/patch-1

Fix example for on_worker_boot
This commit is contained in:
Nate Berkopec 2020-05-19 13:23:30 +09:00 committed by GitHub
commit 5d02e45df5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -443,8 +443,8 @@ module Puma
#
# @note Cluster mode only.
# @example
# on_worker_fork do
# puts 'Before worker fork...'
# on_worker_boot do
# puts 'Before worker boot...'
# end
def on_worker_boot(&block)
@options[:before_worker_boot] ||= []