Sha256: 9ade08fcee9a2b9b12714d4920c31f383e7bcd6a1b1702ee6c0a4b7795cc79f6
Contents?: true
Size: 976 Bytes
Versions: 2
Compression:
Stored size: 976 Bytes
Contents
# frozen_string_literal: true module ForemanWebhooks module Controller module Parameters module Webhook extend ActiveSupport::Concern class_methods do def webhook_params_filter Foreman::ParameterFilter.new(::Webhook).tap do |filter| filter.permit :name, :target_url, :webhook_template_id, :event, :http_method, :http_content_type, :enabled, :verify_ssl, :ssl_ca_certs, :user, :password, :http_headers end end end def webhook_params self.class.webhook_params_filter.filter_params(params, parameter_filter_context) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems