Skip to content

Commit ea11c2f

Browse files
authored
Add params expect method to action pack's notable changes (rails#55315)
2 parents 0fdb4cf + 324f632 commit ea11c2f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

guides/source/8_0_release_notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ Please refer to the [Changelog][action-pack] for detailed changes.
124124

125125
### Notable changes
126126

127+
* Introduce safer, more explicit params handling method with [`params#expect`](https://api.rubyonrails.org/classes/ActionController/Parameters.html#method-i-expect) such that
128+
`params.expect(table: [ :attr ])` replaces `params.require(:table).permit(:attr)`.
129+
127130
Action View
128131
-----------
129132

0 commit comments

Comments
 (0)