[ARVADOS] updated: 06d0c1434c815ff2f00e5723f902fdf11b51ab14

git at public.curoverse.com git at public.curoverse.com
Thu Mar 27 12:13:07 EDT 2014


Summary of changes:
 apps/workbench/app/controllers/users_controller.rb |    2 +-
 apps/workbench/app/models/user.rb                  |    7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

       via  06d0c1434c815ff2f00e5723f902fdf11b51ab14 (commit)
      from  9c78924f523b5420a21fe5c7eba0f913de4c4d69 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 06d0c1434c815ff2f00e5723f902fdf11b51ab14
Author: radhika chippada <radhika at radhika.curoverse>
Date:   Thu Mar 27 12:09:23 2014 -0400

    Improve the api call invocation

diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb
index a98bb11..fc4953e 100644
--- a/apps/workbench/app/controllers/users_controller.rb
+++ b/apps/workbench/app/controllers/users_controller.rb
@@ -140,7 +140,7 @@ class UsersController < ApplicationController
 
   def unsetup
     if current_user.andand.is_admin
-      @object.unsetup @object
+      @object.unsetup
     end
     show
   end
diff --git a/apps/workbench/app/models/user.rb b/apps/workbench/app/models/user.rb
index aee9a03..6c889e6 100644
--- a/apps/workbench/app/models/user.rb
+++ b/apps/workbench/app/models/user.rb
@@ -39,9 +39,10 @@ class User < ArvadosBase
     [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)
+  def unsetup
+    self.private_reload($arvados_api_client.api(self.class,
+                                                "/#{self.uuid}/unsetup",
+                                                {}))
   end
 
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list