Class: WebhooksController

Inherits:
ApplicationController
  • Object
show all
Includes:
Foreman::Controller::AutoCompleteSearch, ForemanWebhooks::Controller::Parameters::Webhook
Defined in:
app/controllers/webhooks_controller.rb

Instance Method Summary collapse

Methods included from ForemanWebhooks::Controller::Parameters::Webhook

#webhook_params

Instance Method Details

#destroyObject



9
10
11
12
13
14
15
# File 'app/controllers/webhooks_controller.rb', line 9

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