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
This commit is contained in:
Kristina Lim
2018-08-06 18:12:35 +08:00
parent c8397024e4
commit a494fb274e

View File

@@ -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: