Sha256: ba7927b8dd59dfd3240f4944327330d3628dadf7c99b493a072c8a92a76a53ed

Contents?: true

Size: 479 Bytes

Versions: 47

Compression:

Stored size: 479 Bytes

Contents

module ForemanPuppet::Parameters::ConfigGroup
  extend ActiveSupport::Concern

  class_methods do
    def config_group_params_filter
      Foreman::ParameterFilter.new(ForemanPuppet::ConfigGroup).tap do |filter|
        filter.permit :name,
          class_environments: [],
          puppetclass_ids: [], puppetclass_names: []
      end
    end
  end

  def config_group_params
    self.class.config_group_params_filter.filter_params(params, parameter_filter_context)
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
foreman_puppet-8.0.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-6.4.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-7.0.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-6.3.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-6.2.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-6.1.1 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-5.1.3 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-6.1.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-6.0.1 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-6.0.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-5.1.2 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-4.1.1 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-5.1.1 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-5.1.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-4.1.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-4.0.4 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-5.0.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-4.0.3 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-4.0.2 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-3.0.7 app/controllers/concerns/foreman_puppet/parameters/config_group.rb