Sha256: af5558cf9e059a03701d90d56e4d0199f3f5474afd630e932311607b45a51c83

Contents?: true

Size: 529 Bytes

Versions: 33

Compression:

Stored size: 529 Bytes

Contents

module ForemanOpenscap
  module HostsControllerExtensions
    extend ActiveSupport::Concern

    included do
      alias_method_chain :process_hostgroup, :openscap
      self::AJAX_REQUESTS << 'openscap_proxy_changed'
    end

    def process_hostgroup_with_openscap
      @hostgroup = Hostgroup.find(params[:host][:hostgroup_id]) if params[:host][:hostgroup_id].to_i > 0
      return head(:not_found) unless @hostgroup
      @openscap_proxy = @hostgroup.openscap_proxy
      process_hostgroup_without_openscap
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

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