current_user.andand.is_admin
end
def attributes_for_display
- logger.debug super.append ['current_user_logins', @current_user_logins]
super.append ['current_user_logins', @current_user_logins]
end
- def attribute_editable?(attr)
+ def attribute_editable? attr, *args
attr != 'current_user_logins' and super
end
def self.attribute_info
{current_user_logins: {column_heading: "logins", type: 'array'}},
super]
end
+ def friendly_link_name
+ (hostname && !hostname.empty?) ? hostname : uuid
+ end
end