Sha256: 69b2117d27207a3827ea6442105c0b28861f3a3874f479ed4d86e13eca6bfff7

Contents?: true

Size: 666 Bytes

Versions: 24

Compression:

Stored size: 666 Bytes

Contents

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

  class_methods do
    def template_input_params_filter
      Foreman::ParameterFilter.new(::TemplateInput).tap do |filter|
        filter.permit_by_context :id, :_destroy, :name, :required, :input_type, :fact_name,
                                 :variable_name, :puppet_class_name, :puppet_parameter_name, :description, :template_id,
                                 :options, :advanced, :nested => true
      end
    end
  end

  def template_input_params
    self.class.template_input_params_filter.filter_params(params, parameter_filter_context, :template_input)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman_remote_execution-1.3.4 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.3.3 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.3.2 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.3.1 app/controllers/concerns/foreman/controller/parameters/template_input.rb