Triplex v1.3.0 Triplex.EnsurePlug View Source

This is a basic plug that ensure the tenant is loaded.

To plug it on your router, you can use:

plug Triplex.EnsurePlug,
  callback: &TenantHelper.callback/2
  failure_callback: &TenantHelper.failure_callback/2

See Triplex.EnsurePlugConfig to check all the allowed config flags.