module ActiveJob::DispatchRider::HandlerRegistrarFallback

This module is prepended to ‘DispatchRider::Registrars::Handler` to allow it to cover any ActiveJob messages. The assumption is that if the message’s subject doesn’t have a registered native ‘DispatchRider::Handler` then the job is delegated to `ActiveJob::DispatchRider::JobHandler`. `ActiveJob::DispatchRider::JobHandler` essentially just let ActiveJob process the message as it would process them normally.

Public Instance Methods

fetch(*) click to toggle source
Calls superclass method
# File lib/activejob/dispatch_rider/handler_registrar_fallback.rb, line 9
def fetch(*)
  super
rescue ::DispatchRider::NotRegistered
  JobHandler
end