Module: Honeybadger::Plugins::Unicorn::AfterForkExtension
- Defined in:
- lib/honeybadger/plugins/unicorn.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 |
# File 'lib/honeybadger/plugins/unicorn.rb', line 8 def self.included(base) base.send(:alias_method, :init_worker_process_without_honeybadger, :init_worker_process) base.send(:alias_method, :init_worker_process, :init_worker_process_with_honeybadger) end |
Instance Method Details
#init_worker_process_with_honeybadger(*args, &block) ⇒ Object
13 14 15 16 17 |
# File 'lib/honeybadger/plugins/unicorn.rb', line 13 def init_worker_process_with_honeybadger(*args, &block) init_worker_process_without_honeybadger(*args, &block).tap do Honeybadger::Agent.fork end end |