From a494fb274ea5fdf2d2002eae6ee5fe2a2ebe545b Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Mon, 6 Aug 2018 18:12:35 +0800 Subject: [PATCH] Disable rubocop cop Rails/ActiveRecordAliases The methods :update! and :update (to replace :update_attributes! and :update_attributes) were not added until Rails 4. See this for more information: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Rails/ActiveRecordAliases --- .rubocop.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 25acf35f57..80d4c1bf7e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -63,6 +63,10 @@ Rails/DynamicFindBy: Rails/FindBy: Enabled: false +# Same as above, #update! is not available until Rails 4 +Rails/ActiveRecordAliases: + Enabled: false + # This should be the programmer's discretion, perhaps we should review all of # the uses of it an make specific exceptions though. Rails/SkipsModelValidations: