We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a383875 commit 5333e94Copy full SHA for 5333e94
README.md
@@ -949,6 +949,9 @@ end
949
950
You may register custom formatters that can be utilized in your schemas.
951
952
+The `transform` proc accepts a params hash, as well as optional `controller`
953
+and `schema` keywords. The proc should return the formatted params.
954
+
955
```rb
956
TypedParams::Formatters.register(:strong_params,
957
transform: -> (params, controller:) {
0 commit comments