Tenex.EnsurePlug (Tenex v1.0.4)

View Source

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

To plug it on your router, you can use:

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

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