From b84520b79d3b099141378f493801cae39305e0f0 Mon Sep 17 00:00:00 2001 From: Jim Gay Date: Thu, 11 Apr 2024 09:38:55 -0400 Subject: [PATCH] Add example of params_for_action --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index fe4b635..b621d1a 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,12 @@ class MyPolicy < ApplicationPolicy end end end + +class SomeController < ApplicationController + def update + @some_record.update(params_for_action(@some_record)) + end +end ``` ## Development