Unplug v0.2.0 Unplug.Predicates.AppConfigEquals View Source

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