app/presenters/tree_node/ext_management_system.rb
module TreeNode
class ExtManagementSystem < Node
set_attribute(:tooltip) do
# # TODO: This should really leverage .base_model on an EMS
prefix_model = case @object
when EmsCloud then "EmsCloud"
when EmsInfra then "EmsInfra"
else "ExtManagementSystem"
end
"#{ui_lookup(:model => prefix_model)}: #{@object.name}"
end
end
end