From 37a7c6d83050bfdebc25e73445b89123371cebc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 8 Oct 2017 11:59:51 +0200 Subject: [PATCH] Revert "use new elixir "not in" syntax in docs (#2555)" This reverts commit 3076e8bdeae83569018e7630abc10ff43635770f. --- lib/phoenix/controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phoenix/controller.ex b/lib/phoenix/controller.ex index 934fd73f0d..c8f2aa99b7 100644 --- a/lib/phoenix/controller.ex +++ b/lib/phoenix/controller.ex @@ -91,7 +91,7 @@ defmodule Phoenix.Controller do a plug to only run in some particular action: plug :authenticate, [usernames: ["jose", "eric", "sonny"]] when action in [:show, :edit] - plug :authenticate, [usernames: ["admin"]] when action not in [:index] + plug :authenticate, [usernames: ["admin"]] when not action in [:index] The first plug will run only when action is show or edit. The second plug will always run, except for the index action.