File tree Expand file tree Collapse file tree 5 files changed +19
-7
lines changed Expand file tree Collapse file tree 5 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 9
9
10
10
## master (unreleased)
11
11
12
+ ## 2.31.0 (2025-04-01)
13
+
12
14
### New features
13
15
14
16
* [ #1471 ] ( https://github.com/rubocop/rubocop-rails/pull/1471 ) : Support ` it ` block parameter in ` Rails ` cops. ([ @koic ] [ ] )
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ name: rubocop-rails
2
2
title : RuboCop Rails
3
3
# We always provide version without patch here (e.g. 1.1),
4
4
# as patch versions should not appear in the docs.
5
- version : ~
5
+ version : ' 2.31 '
6
6
nav :
7
7
- modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change @@ -725,16 +725,16 @@ end
725
725
726
726
Prevents usage of `"*"` on an Arel::Table column reference.
727
727
728
- Using `arel_table["*"]` causes the outputted string to be a literal
729
- quoted asterisk (e.g. <tt> `my_model`.`*`</tt> ). This causes the
730
- database to look for a column named <tt>`*`</tt> (or `"*"`) as opposed
728
+ Using `arel_table["\ *"]` causes the outputted string to be a literal
729
+ quoted asterisk (e.g. `my_model`.`*`). This causes the
730
+ database to look for a column named `\*` (or `"*"`) as opposed
731
731
to expanding the column list as one would likely expect.
732
732
733
733
[#safety-railsarelstar]
734
734
=== Safety
735
735
736
- This cop's autocorrection is unsafe because it turns a quoted `*` into
737
- an SQL `*`, unquoted. `*` is a valid column name in certain databases
736
+ This cop's autocorrection is unsafe because it turns a quoted `\ *` into
737
+ an SQL `*`, unquoted. `\ *` is a valid column name in certain databases
738
738
supported by Rails, and even though it is usually a mistake,
739
739
it might denote legitimate access to a column named `*`.
740
740
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module RuboCop
4
4
module Rails
5
5
# This module holds the RuboCop Rails version information.
6
6
module Version
7
- STRING = '2.30.3 '
7
+ STRING = '2.31.0 '
8
8
9
9
def self . document_version
10
10
STRING . match ( '\d+\.\d+' ) . to_s
Original file line number Diff line number Diff line change
1
+ ### New features
2
+
3
+ * [ #1471 ] ( https://github.com/rubocop/rubocop-rails/pull/1471 ) : Support ` it ` block parameter in ` Rails ` cops. ([ @koic ] [ ] )
4
+
5
+ ### Bug fixes
6
+
7
+ * [ #1465 ] ( https://github.com/rubocop/rubocop-rails/issues/1465 ) : Avoid warnings about methods of ` RuboCop::Cop::EnforceSuperclass ` being redefined. ([ @davidrunger ] [ ] )
8
+
9
+ [ @koic ] : https://github.com/koic
10
+ [ @davidrunger ] : https://github.com/davidrunger
You can’t perform that action at this time.
0 commit comments