Sha256: e63360d958235d1d56a13ec942618753d5d973996515ff437ca77f7d0e5c149a
Contents?: true
Size: 407 Bytes
Versions: 7
Compression:
Stored size: 407 Bytes
Contents
module Foreman::Controller::Parameters::Snapshot extend ActiveSupport::Concern class_methods do def snapshot_params_filter Foreman::ParameterFilter.new(::ForemanSnapshotManagement::Snapshot).tap do |filter| filter.permit :name, :description end end end def snapshot_params self.class.snapshot_params_filter.filter_params(params, parameter_filter_context) end end
Version data entries
7 entries across 7 versions & 1 rubygems