View Source Unplug.Compose.Any (Unplug v1.1.0)

Given a list of predicates, execute the plug if any of the predicates return true.

Usage:

plug Unplug,
  if: {Unplug.Compose.Any, [
    {Unplug.Predicates.AppConfigEquals, {:my_app, :some_config, :enabled}},
    MyApp.CustomPredicate
  ]},
  do: MyApp.Plug