diff --git a/CHANGELOG.md b/CHANGELOG.md index fb96f43400..7c190dbd56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,22 @@ ## master (unreleased) +### New features + +* [#1383](https://github.com/rubocop/rubocop-rails/pull/1383): Introduce `AllCops: MigratedSchemaVersion` config. ([@koic][]) + +### Bug fixes + +* [#1390](https://github.com/rubocop/rubocop-rails/pull/1390): Fix an incorrect autocorrect for `Rails/SelectMap` when `select` has no receiver and method chains are used. ([@masato-bkn][]) +* [#1382](https://github.com/rubocop/rubocop-rails/pull/1382): Fix false negatives for `Rails/RedundantActiveRecordAllMethod` when using `all` method in block. ([@masato-bkn][]) +* [#1397](https://github.com/rubocop/rubocop-rails/pull/1397): Fix `Rails/FilePath` cop error on `join` method with implicit receiver. ([@viralpraxis][]) +* [#1398](https://github.com/rubocop/rubocop-rails/pull/1398): Fix `Rails/FilePath` cop error in case of extra operations in `Rails.root` interpolation. ([@viralpraxis][]) +* [#1392](https://github.com/rubocop/rubocop-rails/pull/1392): Fix `Rails/FilePath` cop error with rescued `Rails.root`. ([@viralpraxis][]) + +### Changes + +* [#1388](https://github.com/rubocop/rubocop-rails/pull/1388): Modify `Rails/Pluck` to ignore `map/collect` when used inside blocks to prevent potential N+1 queries. ([@masato-bkn][]) + ## 2.27.0 (2024-10-26) ### Bug fixes @@ -1166,3 +1182,4 @@ [@maxprokopiev]: https://github.com/maxprokopiev [@ytjmt]: https://github.com/ytjmt [@armandmgt]: https://github.com/armandmgt +[@viralpraxis]: https://github.com/viralpraxis diff --git a/changelog/change_modify_rails_pluck_to_ignore_map_collect.md b/changelog/change_modify_rails_pluck_to_ignore_map_collect.md deleted file mode 100644 index ab03eaf10c..0000000000 --- a/changelog/change_modify_rails_pluck_to_ignore_map_collect.md +++ /dev/null @@ -1 +0,0 @@ -* [#1388](https://github.com/rubocop/rubocop-rails/pull/1388): Modify `Rails/Pluck` to ignore `map/collect` when used inside blocks to prevent potential N+1 queries. ([@masato-bkn][]) diff --git a/changelog/fix_fix_an_incorrect_autocorrect_for.md b/changelog/fix_fix_an_incorrect_autocorrect_for.md deleted file mode 100644 index bbbcd2aa0a..0000000000 --- a/changelog/fix_fix_an_incorrect_autocorrect_for.md +++ /dev/null @@ -1 +0,0 @@ -* [#1390](https://github.com/rubocop/rubocop-rails/pull/1390): Fix an incorrect autocorrect for `Rails/SelectMap` when `select` has no receiver and method chains are used. ([@masato-bkn][]) diff --git a/changelog/fix_fix_false_negatives_for_ rails_redundant_active_record_all_method.md b/changelog/fix_fix_false_negatives_for_ rails_redundant_active_record_all_method.md deleted file mode 100644 index c77140b269..0000000000 --- a/changelog/fix_fix_false_negatives_for_ rails_redundant_active_record_all_method.md +++ /dev/null @@ -1 +0,0 @@ -* [#1382](https://github.com/rubocop/rubocop-rails/pull/1382): Fix false negatives for `Rails/RedundantActiveRecordAllMethod` when using `all` method in block. ([@masato-bkn][]) diff --git a/changelog/fix_merge_pull_request_1392_from.md b/changelog/fix_merge_pull_request_1392_from.md deleted file mode 100644 index 887a3d16e5..0000000000 --- a/changelog/fix_merge_pull_request_1392_from.md +++ /dev/null @@ -1 +0,0 @@ -* [#1397](https://github.com/rubocop/rubocop-rails/pull/1397): Fix `Rails/FilePath` cop error on `join` method with implicit receiver. ([@viralpraxis][]) diff --git a/changelog/fix_rails_file_path_cop_error_on_extra_operations_in_rails_root_interpolation.md b/changelog/fix_rails_file_path_cop_error_on_extra_operations_in_rails_root_interpolation.md deleted file mode 100644 index 5d8f66c438..0000000000 --- a/changelog/fix_rails_file_path_cop_error_on_extra_operations_in_rails_root_interpolation.md +++ /dev/null @@ -1 +0,0 @@ -* [#1398](https://github.com/rubocop/rubocop-rails/pull/1398): Fix `Rails/FilePath` cop error in case of extra operations in `Rails.root` interpolation. ([@viralpraxis][]) diff --git a/changelog/fix_rails_file_path_cop_error_with_rescued_rails_root.md b/changelog/fix_rails_file_path_cop_error_with_rescued_rails_root.md deleted file mode 100644 index e5fe0b299e..0000000000 --- a/changelog/fix_rails_file_path_cop_error_with_rescued_rails_root.md +++ /dev/null @@ -1 +0,0 @@ -* [#1392](https://github.com/rubocop/rubocop-rails/pull/1392): Fix `Rails/FilePath` cop error with rescued `Rails.root`. ([@viralpraxis][]) diff --git a/changelog/new_intro_migrated_schema_version.md b/changelog/new_intro_migrated_schema_version.md deleted file mode 100644 index 155ca86419..0000000000 --- a/changelog/new_intro_migrated_schema_version.md +++ /dev/null @@ -1 +0,0 @@ -* [#1383](https://github.com/rubocop/rubocop-rails/pull/1383): Introduce `AllCops: MigratedSchemaVersion` config. ([@koic][])