Skip to content

Commit 9bb121a

Browse files
authored
Merge pull request #1059 from koic/relax_include_path_for_rails_find_by_and_find_each
[Fix #1058] Relax `Include` path for `Rails/FindBy` and `Rails/FindEach`
2 parents 34376e0 + 0066b35 commit 9bb121a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#1058](https://github.com/rubocop/rubocop-rails/issues/1058): Relax `Include` path for `Rails/FindBy` and `Rails/FindEach`. ([@koic][])

config/default.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,8 @@ Rails/FindBy:
463463
StyleGuide: 'https://rails.rubystyle.guide#find_by'
464464
Enabled: true
465465
VersionAdded: '0.30'
466-
VersionChanged: '2.11'
466+
VersionChanged: '<<next>>'
467467
IgnoreWhereFirst: true
468-
Include:
469-
- app/models/**/*.rb
470468

471469
Rails/FindById:
472470
Description: >-
@@ -482,9 +480,7 @@ Rails/FindEach:
482480
Enabled: true
483481
Safe: false
484482
VersionAdded: '0.30'
485-
VersionChanged: '2.19'
486-
Include:
487-
- app/models/**/*.rb
483+
VersionChanged: '<<next>>'
488484
AllowedMethods:
489485
# Methods that don't work well with `find_each`.
490486
- order

0 commit comments

Comments
 (0)