20300: Mark belongs_to relations as optional.
[arvados.git] / services / api / app / models / keep_disk.rb
index 5751c135d8f9cdd57cc3f2f3ed5d77723c7abe6c..589936f84521d1fa66460b088fccbc8e31468b7a 100644 (file)
@@ -40,7 +40,7 @@ class KeepDisk < ArvadosModel
     end
 
     @bypass_arvados_authorization = true
-    self.update_attributes!(o.select { |k,v|
+    self.update!(o.select { |k,v|
                              [:bytes_total,
                               :bytes_free,
                               :is_readable,