app/helpers/application_helper/button/host_performance.rb
class ApplicationHelper::Button::HostPerformance < ApplicationHelper::Button::Basic
needs :@record
def disabled?
@error_message = _("No Capacity & Utilization data has been collected for this Host") unless @record.has_perf_data?
@error_message.present?
end
end