From 26548e3e18e35d7b2dc0eebb78a50238e6e794e0 Mon Sep 17 00:00:00 2001 From: Jim Gay Date: Thu, 11 Apr 2024 09:40:12 -0400 Subject: [PATCH] Make the examples match --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b621d1a..f0e9db9 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ class MyPolicy < ApplicationPolicy end # Return the params for the action but require a special key - def params_for_create(params) - params_for(@record, params, :create).tap do |params| + def params_for_update(params) + params_for(@record, params, :update).tap do |params| params.require(:special_key) end end