From d6118f5ed3ed9d820e90127c1a192077356b0099 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Mon, 1 Jul 2024 18:00:21 -0500 Subject: [PATCH] update action_rendering to permit params and then convert to_h --- app/controllers/concerns/action_rendering.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/concerns/action_rendering.rb b/app/controllers/concerns/action_rendering.rb index cb3d12b5..3f007994 100644 --- a/app/controllers/concerns/action_rendering.rb +++ b/app/controllers/concerns/action_rendering.rb @@ -11,7 +11,8 @@ def index def show authorize model_class.where(id: resource_ids) - render json: serializer_class.resource(params, nil, current_user: current_user) + params.permit! + render json: serializer_class.resource(params.to_h, nil, current_user: current_user) end def create