rename foreign uuid attributes
[arvados.git] / apps / workbench / app / controllers / groups_controller.rb
index a924db2dcefefe88cfe3242da12fd795d9fbaa97..daf8ab94ed60408517b45fbc2d20c3174baa292e 100644 (file)
@@ -4,13 +4,13 @@ class GroupsController < ApplicationController
   def index
     @groups = Group.limit(10000).all
     @group_uuids = @groups.collect &:uuid
-    @owned_users = User.where owner: @group_uuids
+    @owned_users = User.where owner_uuid: @group_uuids
     @links_from = Link.where link_class: 'permission', tail_uuid: @group_uuids
     @links_to = Link.where link_class: 'permission', head_uuid: @group_uuids
   end
 
   def show
-    @collections = Collection.where(owner: @object.uuid)
+    @collections = Collection.where(owner_uuid: @object.uuid)
     @names = {}
     @keep_flag = {}
     @pgp_hu_id = {}