20300: Change deprecated update_attributes to update.
[arvados.git] / apps / workbench / app / controllers / collections_controller.rb
index 680c324f5cd0255fb89f1ce6b2ed9333a0e7603a..812b80b8ce739a93066771cdd488243c84da5187 100644 (file)
@@ -258,7 +258,7 @@ class CollectionsController < ApplicationController
       arv_coll.rm "."+p
     end
 
-    if @object.update_attributes manifest_text: arv_coll.manifest_text
+    if @object.update manifest_text: arv_coll.manifest_text
       show
     else
       self.render_error status: 422
@@ -289,7 +289,7 @@ class CollectionsController < ApplicationController
       else
         arv_coll.rename "./"+file_path, new_file_path
 
-        if @object.update_attributes manifest_text: arv_coll.manifest_text
+        if @object.update manifest_text: arv_coll.manifest_text
           show
         else
           self.render_error status: 422