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