Sha256: 4eea23875d396e96685739b1e64bb3364f2f5b67ef9b8a2f57fa47167ed0eba3

Contents?: true

Size: 480 Bytes

Versions: 102

Compression:

Stored size: 480 Bytes

Contents

module Foreman::Controller::Parameters::ScapContent
  extend ActiveSupport::Concern

  class_methods do
    def scap_content_params_filter
      Foreman::ParameterFilter.new(::ForemanOpenscap::ScapContent).tap do |filter|
        filter.permit :original_filename, :scap_file, :title, :location_ids => [], :organization_ids => []
      end
    end
  end

  def scap_content_params
    self.class.scap_content_params_filter.filter_params(params, parameter_filter_context)
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
foreman_openscap-10.1.0 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-10.0.3 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-10.0.2 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-10.0.1 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-10.0.0 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-9.0.4 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-9.0.3 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-9.0.2 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-9.0.1 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-9.0.0 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-8.0.0 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-7.1.1 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-7.1.0 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-7.0.0 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-6.0.0 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-5.2.3 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-5.2.2 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-5.1.1 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-5.2.1 app/controllers/concerns/foreman/controller/parameters/scap_content.rb
foreman_openscap-5.2.0 app/controllers/concerns/foreman/controller/parameters/scap_content.rb