ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/custom_button_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module CustomButtonHelper
  def target_class_name(klass)
    case klass
    when 'MiqGroup'
      _('Group')
    when 'Switch'
      _('Virtual Infra Switch')
    when 'User'
      _('User')
    else
      ui_lookup(:model => klass)
    end
  end
end