Sha256: 93a08c8920aa2567aff663fc8b7abd1176dde84b0599320dde46158083ed1e1d
Contents?: true
Size: 739 Bytes
Versions: 14
Compression:
Stored size: 739 Bytes
Contents
# frozen_string_literal: true module ForemanAcd module Concerns # Parameters for AppInstances module AppInstanceParameters extend ActiveSupport::Concern class_methods do def app_instance_params_filter Foreman::ParameterFilter.new(::ForemanAcd::AppInstance).tap do |filter| filter.permit(:name, :app_definition_id, :description, :hosts, :ansible_vars_all, :organization_id, :location_id) end end end def app_instance_params param_name = parameter_filter_context.api? ? 'app_instance' : 'foreman_acd_app_instance' self.class.app_instance_params_filter.filter_params(params, parameter_filter_context, param_name) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems