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 99
1010## master (unreleased)
1111
12+ ## 2.31.0 (2025-04-01)
13+
1214### New features
1315
1416* [ #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
22title : 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.31 '
66nav :
77 - modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change @@ -725,16 +725,16 @@ end
725725
726726Prevents usage of `"*"` on an Arel::Table column reference.
727727
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
731731to expanding the column list as one would likely expect.
732732
733733[#safety-railsarelstar]
734734=== Safety
735735
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
738738supported by Rails, and even though it is usually a mistake,
739739it might denote legitimate access to a column named `*`.
740740
Original file line number Diff line number Diff 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.30.3 '
7+ STRING = '2.31.0 '
88
99 def self . document_version
1010 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