Module: ActiveJobStatus::Hooks
- Included in:
- TrackableJob
- Defined in:
- lib/active_job_status/hooks.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/active_job_status/hooks.rb', line 3 def self.included(base) base.class_eval do before_enqueue { job_tracker.enqueued } before_perform { job_tracker.performing } after_perform { job_tracker.completed } end end |