diff --git a/CHANGELOG.md b/CHANGELOG.md index 879af7e102..b4f86f1d73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ * [#297](https://github.com/rubocop-hq/rubocop-rails/pull/297): Handle an upstream Ruby issue where the DidYouMean module is not available, which would break the `Rails/UnknownEnv` cop. ([@taylorthurlow][]) +### Changes + +* [#301](https://github.com/rubocop-hq/rubocop-rails/issues/301): Set disalbed by default for `Rails/PluckId`. ([@koic][]) + ## 2.7.0 (2020-07-21) ### New features diff --git a/config/default.yml b/config/default.yml index b596b8735c..2dc8d28057 100644 --- a/config/default.yml +++ b/config/default.yml @@ -417,7 +417,7 @@ Rails/Pluck: Rails/PluckId: Description: 'Use `ids` instead of `pluck(:id)` or `pluck(primary_key)`.' StyleGuide: 'https://rails.rubystyle.guide/#ids' - Enabled: 'pending' + Enabled: false Safe: false VersionAdded: '2.7' diff --git a/docs/modules/ROOT/pages/cops_rails.adoc b/docs/modules/ROOT/pages/cops_rails.adoc index 471b8ea71f..af176f423c 100644 --- a/docs/modules/ROOT/pages/cops_rails.adoc +++ b/docs/modules/ROOT/pages/cops_rails.adoc @@ -2408,7 +2408,7 @@ Post.published.pluck(:title) |=== | Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged -| Pending +| Disabled | No | Yes (Unsafe) | 2.7