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.5.6 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.6.3 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.6.2 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.5.5 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.6.1 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.6.0 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.5.4 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.5.3 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.5.2 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.5.1 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.5.0 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.4.6 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.4.5 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.4.4 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.4.3 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.4.2 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.3.7 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.3.6 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.4.1 app/controllers/concerns/foreman/controller/parameters/template_input.rb
foreman_remote_execution-1.3.5 app/controllers/concerns/foreman/controller/parameters/template_input.rb