From bc82f512d575920c5bc5fad2c0965bd14d865a7c Mon Sep 17 00:00:00 2001 From: Jim Gay Date: Thu, 11 Apr 2024 09:41:15 -0400 Subject: [PATCH] Add permitted_attributes to readme example --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f0e9db9..44c4475 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,10 @@ class MyPolicy < ApplicationPolicy params.require(:special_key) end end + + def permitted_attributes + %i[name other special_key] + end end class SomeController < ApplicationController