Unplug v0.2.0 Unplug.Predicates.AppConfigNotEquals View Source

Given an application and a key, do not execute the plug if the configured value matches the expected value.

Usage:

plug Unplug,
  if: {Unplug.Predicates.AppConfigNotEquals, {:my_app, :some_config, :disabled}},
  do: MyApp.Plug