Sha256: ee4f24b95c00218ef620ce42af6db8e6d3977aba17975cbe33a8d482cef25aeb

Contents?: true

Size: 350 Bytes

Versions: 18

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

class WebhooksController < ::ApplicationController
  include ForemanWebhooks::Controller::Parameters::Webhook
  include Foreman::Controller::AutoCompleteSearch

  before_action :find_resource, only: %i[destroy]

  def destroy
    if @webhook.destroy
      process_success
    else
      process_error
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
foreman_webhooks-4.0.0 app/controllers/webhooks_controller.rb
foreman_webhooks-3.2.3 app/controllers/webhooks_controller.rb
foreman_webhooks-3.2.2 app/controllers/webhooks_controller.rb
foreman_webhooks-3.1.1 app/controllers/webhooks_controller.rb
foreman_webhooks-3.2.1 app/controllers/webhooks_controller.rb
foreman_webhooks-3.2.0 app/controllers/webhooks_controller.rb
foreman_webhooks-3.1.0 app/controllers/webhooks_controller.rb
foreman_webhooks-3.0.5 app/controllers/webhooks_controller.rb
foreman_webhooks-2.0.3 app/controllers/webhooks_controller.rb
foreman_webhooks-3.0.4 app/controllers/webhooks_controller.rb
foreman_webhooks-2.0.2 app/controllers/webhooks_controller.rb
foreman_webhooks-3.0.3 app/controllers/webhooks_controller.rb
foreman_webhooks-3.0.2 app/controllers/webhooks_controller.rb
foreman_webhooks-3.0.1 app/controllers/webhooks_controller.rb
foreman_webhooks-2.0.1 app/controllers/webhooks_controller.rb
foreman_webhooks-3.0.0 app/controllers/webhooks_controller.rb
foreman_webhooks-2.0.0 app/controllers/webhooks_controller.rb
foreman_webhooks-1.1.0 app/controllers/webhooks_controller.rb