View Source Unplug.Predicates.AppConfigIn (Unplug v1.1.0)

Given an application and a key, execute the plug if the configured value is in the provided enumerable of values.

Usage:

plug Unplug,
  if: {Unplug.Predicates.AppConfigIn, {:my_app, :some_config, [:enabled, :enabled_again]}},
  do: MyApp.Plug