Class: Metrician::DelayedJob
- Defined in:
- lib/metrician/reporters/delayed_job.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Reporter
Class Method Details
Instance Method Details
#instrument ⇒ Object
9 10 11 12 13 14 |
# File 'lib/metrician/reporters/delayed_job.rb', line 9 def instrument require "metrician/jobs/delayed_job_callbacks" unless ::Delayed::Worker.plugins.include?(::Metrician::Jobs::DelayedJobCallbacks) ::Delayed::Worker.plugins << ::Metrician::Jobs::DelayedJobCallbacks end end |