Sha256: 7b1620e6582f7631af27fac7a575ecd0e71f2c45370ec3911156ebaa48f082f6
Contents?: true
Size: 624 Bytes
Versions: 6
Compression:
Stored size: 624 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
6 entries across 6 versions & 1 rubygems