1 class VirtualMachinesController < ApplicationController
3 @objects ||= model_class.all
5 if @objects.andand.first
6 Link.where(tail_uuid: current_user.uuid,
7 head_uuid: @objects.collect(&:uuid),
8 link_class: 'permission',
11 if perm_link.properties.andand[:username]
12 @vm_logins[perm_link.head_uuid] ||= []
13 @vm_logins[perm_link.head_uuid] << perm_link.properties[:username]
17 vm.current_user_logins = @vm_logins[vm.uuid].andand.compact || []