From 27aaa815c753be6cf756d519a23fdcc21f20854e Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Wed, 2 Jul 2025 16:12:37 -0500 Subject: [PATCH] Prefer modern syntax --- app/controllers/cards/steps_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/cards/steps_controller.rb b/app/controllers/cards/steps_controller.rb index 8821289b7..4f3434632 100644 --- a/app/controllers/cards/steps_controller.rb +++ b/app/controllers/cards/steps_controller.rb @@ -30,6 +30,6 @@ class Cards::StepsController < ApplicationController end def step_params - params.require(:step).permit(:content, :completed) + params.expect(step: [ :content, :completed ]) end end