Sha256: 07f00c2cc0da560cf917f0670c3413130872abe292b323eea110d74a783da827
Contents?: true
Size: 611 Bytes
Versions: 34
Compression:
Stored size: 611 Bytes
Contents
module ForemanOpenscap module HostsHelperExtensions extend ActiveSupport::Concern included do alias_method_chain :multiple_actions, :scap alias_method_chain :name_column, :scap end def multiple_actions_with_scap multiple_actions_without_scap + [[_('Assign Compliance Policy'), select_multiple_hosts_policies_path], [_('Unassign Compliance Policy'), disassociate_multiple_hosts_policies_path]] end def name_column_with_scap(record) record.nil? ? _('Host is deleted') : name_column_without_scap(record) end end end
Version data entries
34 entries across 34 versions & 1 rubygems