Accrue.Rails.GatewayRegistry (accrue v1.5.1)

Copy Markdown View Source

Closed dispatch boundary for already-persisted gateway resources.

Creation deliberately remains configured-processor driven. A resource which already exists, however, must always use the processor recorded with that resource so a concurrent configuration change cannot redirect a mutation.

Summary

Functions

resolve(processor)

@spec resolve(String.t() | atom() | nil) ::
  {:ok, module()} | {:error, Accrue.Rails.GatewayRegistry.Error.t()}