1 class VirtualMachinesController < ApplicationController
6 @objects ||= model_class.all
8 if @objects.andand.first
9 Link.where(tail_uuid: current_user.uuid,
10 head_uuid: @objects.collect(&:uuid),
11 link_class: 'permission',
14 if perm_link.properties.andand[:username]
15 @vm_logins[perm_link.head_uuid] ||= []
16 @vm_logins[perm_link.head_uuid] << perm_link.properties[:username]
20 vm.current_user_logins = @vm_logins[vm.uuid].andand.compact || []