From 26159747519ffdc5770c4f9384fc644a7b1819d7 Mon Sep 17 00:00:00 2001 From: Philip Arndt <git@p.arndt.io> Date: Tue, 23 May 2023 20:51:00 +1200 Subject: [PATCH] While reading through this guide we noticed that the params assignment is never used so we removed it from the example. Co-authored-by: Amanda Wagener <amanda@awagener.com> --- content/v2.0/actions/control-flow.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/v2.0/actions/control-flow.md b/content/v2.0/actions/control-flow.md index c900ab05..33febd88 100644 --- a/content/v2.0/actions/control-flow.md +++ b/content/v2.0/actions/control-flow.md @@ -37,7 +37,6 @@ module Bookshelf private def validate_params(request, response) - params = request.params halt 422, request.params.errors.to_h unless request.params.valid? end end