Method: Webhookdb::Replicator::Base#dispatch_request_to
- Defined in:
- lib/webhookdb/replicator/base.rb
#dispatch_request_to(request) ⇒ Webhookdb::Replicator::Base
A given HTTP request may not be handled by the service integration it was sent to, for example where the service integration is part of some ‘root’ hierarchy. This method is called in the webhook endpoint, and should return the replicator used to handle the webhook request. The request is validated by the returned instance, and it is enqueued for processing.
By default, the service called by the webhook is the one we want to use, so return self.
634 635 636 |
# File 'lib/webhookdb/replicator/base.rb', line 634 def dispatch_request_to(request) return self end |