Skip to content

Commit 722878a

Browse files
committed
Cut 2.22.1
1 parent 066b4c4 commit 722878a

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

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.22.1 (2023-10-28)
13+
1214
### Bug fixes
1315

1416
* [#1145](https://github.com/rubocop/rubocop-rails/issues/1145): Fix a false positive for `Rails/DuplicateAssociation` when using duplicate `belongs_to` associations of same class without other arguments. ([@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.22'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_rails.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,12 +1638,12 @@ belongs_to :bar
16381638
has_one :foo
16391639
16401640
# bad
1641-
belongs_to :foo, class_name: 'Foo'
1642-
belongs_to :bar, class_name: 'Foo'
1641+
has_many :foo, class_name: 'Foo'
1642+
has_many :bar, class_name: 'Foo'
16431643
has_one :baz
16441644
16451645
# good
1646-
belongs_to :bar, class_name: 'Foo'
1646+
has_many :bar, class_name: 'Foo'
16471647
has_one :foo
16481648
----
16491649

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.22.0'
7+
STRING = '2.22.1'
88

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

relnotes/v2.22.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Bug fixes
2+
3+
* [#1145](https://github.com/rubocop/rubocop-rails/issues/1145): Fix a false positive for `Rails/DuplicateAssociation` when using duplicate `belongs_to` associations of same class without other arguments. ([@koic][])
4+
5+
[@koic]: https://github.com/koic

0 commit comments

Comments
 (0)