Sha256: 5d3f7ff79345e521722dffd9dc5eee7355a8458404fe7abdf587abd7265fb422
Contents?: true
Size: 462 Bytes
Versions: 2
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true 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, :include_ram, :host_id end end end def snapshot_params self.class.snapshot_params_filter.filter_params(params, parameter_filter_context) end end
Version data entries
2 entries across 2 versions & 1 rubygems