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

Version Path
foreman_openscap-0.7.13 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.8.6 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.8.5 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.12 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.8.4 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.11 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.10 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.8.3 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.9 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.8 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.7 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.8.2 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.6 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.8.1 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.5 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.8.0 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.4 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.3 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.2 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
foreman_openscap-0.7.1 app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb