Method: ActiveJob::Callbacks::ClassMethods#inherited

Defined in:
activejob/lib/active_job/callbacks.rb

#inherited(klass) ⇒ Object



44
45
46
47
48
# File 'activejob/lib/active_job/callbacks.rb', line 44

def inherited(klass)
  klass.get_callbacks(:enqueue).config[:skip_after_callbacks_if_terminated] = skip_after_callbacks_if_terminated
  klass.get_callbacks(:perform).config[:skip_after_callbacks_if_terminated] = skip_after_callbacks_if_terminated
  super
end