Sha256: 5f145f2cff74115fd2ab83bfa309a56f8a7eb8cb9e8187169618116ca6bfcf86
Contents?: true
Size: 704 Bytes
Versions: 6
Compression:
Stored size: 704 Bytes
Contents
# frozen_string_literal: true module ForemanAcd module Concerns # Parameters for AppDefinitions module AppDefinitionParameters extend ActiveSupport::Concern class_methods do def app_definition_params_filter Foreman::ParameterFilter.new(::ForemanAcd::AppDefinition).tap do |filter| filter.permit(:name, :description, :hostgroup_id, :parameters) end end end def app_definition_params param_name = parameter_filter_context.api? ? 'app_definition' : 'foreman_acd_app_definition' self.class.app_definition_params_filter.filter_params(params, parameter_filter_context, param_name) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems