Skip to content

Commit 26f1034

Browse files
committed
Cut 2.35.2
1 parent 65841f0 commit 26f1034

5 files changed

Lines changed: 14 additions & 3 deletions

File tree

CHANGELOG.md

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

1010
## master (unreleased)
1111

12+
## 2.35.2 (2026-05-19)
13+
1214
### Bug fixes
1315

1416
* [#1625](https://github.com/rubocop/rubocop-rails/issues/1625): Fix false positives in `Rails/StrongParametersExpect` when using collection methods (such as `delete`, `keys`, `merge`, `slice`, `dig`, `fetch`, or `transform_values`) on `params[:key]`, as well as block-style calls such as `params[:key].each { ... }` or `params[:key].map(&:to_s)`. ([@koic][])

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: rubocop-rails
22
title: RuboCop Rails
33
# We always provide version without patch here (e.g. 1.1),
44
# as patch versions should not appear in the docs.
5-
version: ~
5+
version: '2.35'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_rails.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6984,7 +6984,9 @@ In the following cases, `params[:key]` is treated as a key that is expected to b
69846984
and the cop detects it using the `expect` method.
69856985
69866986
- Method calls on `params[:key]` without comparison methods, methods that are safe to call
6987-
on `nil` (such as `to_i`, `to_s`, or `is_a?`), or key-check methods such as `key?`
6987+
on `nil` (such as `to_i`, `to_s`, or `is_a?`), key-check methods such as `key?`,
6988+
collection methods such as `keys`, `merge`, or `slice`, or block-style calls such as
6989+
`params[:key].each { ... }` or `params[:key].map(&:to_s)`
69886990
- Passing `params[:key]` as an argument to finder methods that raise on missing records
69896991
- Strong parameter methods using `require` or `permit`
69906992

lib/rubocop/rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module RuboCop
44
module Rails
55
# This module holds the RuboCop Rails version information.
66
module Version
7-
STRING = '2.35.1'
7+
STRING = '2.35.2'
88

99
def self.document_version
1010
STRING.match('\d+\.\d+').to_s

relnotes/v2.35.2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Bug fixes
2+
3+
* [#1625](https://github.com/rubocop/rubocop-rails/issues/1625): Fix false positives in `Rails/StrongParametersExpect` when using collection methods (such as `delete`, `keys`, `merge`, `slice`, `dig`, `fetch`, or `transform_values`) on `params[:key]`, as well as block-style calls such as `params[:key].each { ... }` or `params[:key].map(&:to_s)`. ([@koic][])
4+
* [#1627](https://github.com/rubocop/rubocop-rails/pull/1627): Fix false positives in `Rails/StrongParametersExpect` for usages like `params[:key].try(:method)` and `params[:key].try!(:method)`. ([@nicholasdower][])
5+
6+
[@koic]: https://github.com/koic
7+
[@nicholasdower]: https://github.com/nicholasdower

0 commit comments

Comments
 (0)