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-1.0.1 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-1.0.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-1.0.0.rc.2 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-1.0.0.rc.1 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-0.1.0 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-0.0.2 app/controllers/concerns/foreman_puppet/parameters/config_group.rb
foreman_puppet-0.0.1 app/controllers/concerns/foreman_puppet/parameters/config_group.rb