From 2d355b04339076cd8908db50bcd5f55ffa6cc748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=AA=E0=A5=8D=E0=A4=B0=E0=A4=A5=E0=A4=AE=E0=A5=87?= =?UTF-8?q?=E0=A4=B6=20Sonpatki?= Date: Tue, 30 Jul 2019 13:49:19 +0530 Subject: [PATCH] Make ActiveRecordAliases scope false We faced an issue where our custom `update_attributes` method call was changed to `update` but the method name remained same in the method definition. ### Original code ```ruby def update_attributes end update_attributes ``` ### After running rubocop --safe-auto-correct: ```ruby def update_attributes end update ``` So the cop is not safe for auto correct. --- config/default.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/default.yml b/config/default.yml index e8ea60d302..f733153b13 100644 --- a/config/default.yml +++ b/config/default.yml @@ -31,6 +31,7 @@ Rails/ActiveRecordAliases: Use `update!` instead of `update_attributes!`. Enabled: true VersionAdded: '0.53' + Safe: false Rails/ActiveRecordOverride: Description: >-