View Source Unplug.Predicates.AppConfigEquals (Unplug v1.0.0)

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

Usage:

plug Unplug,
  if: {Unplug.Predicates.AppConfigEquals, {:my_app, :some_config, :enabled}},
  do: MyApp.Plug