Method: Webhookdb::Replicator::Base#preferred_create_state_machine_method
- Defined in:
- lib/webhookdb/replicator/base.rb
#preferred_create_state_machine_method ⇒ Symbol
If the integration supports webhooks, then we want to do that on create. If it’s backfill only, then we fall back to that instead. Things like choosing dependencies are webhook-vs-backfill agnostic, so which machine we choose isn’t that important (but it does happen during creation).
200 201 202 |
# File 'lib/webhookdb/replicator/base.rb', line 200 def preferred_create_state_machine_method return self.descriptor.supports_webhooks? ? :calculate_webhook_state_machine : :calculate_backfill_state_machine end |