Module: ActiveJob::DispatchRider::HandlerRegistrarFallback
- Defined in:
- lib/activejob/dispatch_rider/handler_registrar_fallback.rb
Overview
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.
Instance Method Summary collapse
Instance Method Details
#fetch ⇒ Object
9 10 11 12 13 |
# File 'lib/activejob/dispatch_rider/handler_registrar_fallback.rb', line 9 def fetch(*) super rescue ::DispatchRider::NotRegistered JobHandler end |