Use post method instead of get method when invoking the unsetup method from the api...
[arvados.git] / apps / workbench / app / models / user.rb
index cc9b9bb058cea3e2696eaf37a85559fde93d1431..aee9a037838b4ee2eb8548cdfbe861c6ee77d26f 100644 (file)
@@ -38,4 +38,10 @@ class User < ArvadosBase
   def friendly_link_name
     [self.first_name, self.last_name].compact.join ' '
   end
+
+  def unsetup user
+    res = $arvados_api_client.api(user.class, "/#{user.uuid}/unsetup", {})
+    $arvados_api_client.unpack_api_response(res)
+  end
+
 end