mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
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:
@@ -63,6 +63,10 @@ Rails/DynamicFindBy:
|
|||||||
Rails/FindBy:
|
Rails/FindBy:
|
||||||
Enabled: false
|
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
|
# This should be the programmer's discretion, perhaps we should review all of
|
||||||
# the uses of it an make specific exceptions though.
|
# the uses of it an make specific exceptions though.
|
||||||
Rails/SkipsModelValidations:
|
Rails/SkipsModelValidations:
|
||||||
|
|||||||
Reference in New Issue
Block a user