Skip to content

Commit 7f93b76

Browse files
committed
Update Changelog
1 parent 3e9d4a5 commit 7f93b76

3 files changed

Lines changed: 6 additions & 2 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
## master (unreleased)
1111

12+
### Bug fixes
13+
14+
* [#1630](https://github.com/rubocop/rubocop-rails/issues/1630): Fix a false positive in `Rails/StrongParametersExpect` when negating `params[:key]` with `!`, such as `!params[:key]`. ([@koic][])
15+
* [#1629](https://github.com/rubocop/rubocop-rails/pull/1629): Fix false positives in `Rails/StrongParametersExpect` when using the safe navigation operator (`&.`) on `params[:key]`. Autocorrecting `params[:key]&.downcase` to `params.expect(:key).downcase` silently changes behavior — a missing param goes from returning `nil` to raising `ActionController::ParameterMissing`. ([@lucasmazza][])
16+
1217
## 2.35.2 (2026-05-19)
1318

1419
### Bug fixes
@@ -1424,3 +1429,4 @@
14241429
[@55728]: https://github.com/55728
14251430
[@codergeek121]: https://github.com/codergeek121
14261431
[@nicholasdower]: https://github.com/nicholasdower
1432+
[@lucasmazza]: https://github.com/lucasmazza

changelog/fix_false_positives_for_rails_strong_parameters_expect_with_negation.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/fix_false_positives_for_rails_strong_parameters_expect_with_safe_navigation.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)