1 class VirtualMachine < ArvadosBase
2 attr_accessor :current_user_logins
4 current_user.andand.is_admin
6 def attributes_for_display
7 logger.debug super.append ['current_user_logins', @current_user_logins]
8 super.append ['current_user_logins', @current_user_logins]
10 def attribute_editable?(attr)
11 attr != 'current_user_logins' and super
13 def self.attribute_info
14 merger = ->(k,a,b) { a.merge(b, &merger) }
16 {current_user_logins: {column_heading: "logins", type: 'array'}},