Disable Rails/SkipsModelValidations
cop (#28712)
This commit is contained in:
parent
b5afbe0a61
commit
a2f02a0775
10 changed files with 12 additions and 46 deletions
|
@ -37,7 +37,7 @@ class AttachmentBatch
|
|||
|
||||
def clear
|
||||
remove_files
|
||||
batch.update_all(nullified_attributes) # rubocop:disable Rails/SkipsModelValidations
|
||||
batch.update_all(nullified_attributes)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue