Module: WebHooks::HookLogActions

Extended by:
ActiveSupport::Concern
Includes:
HookExecutionNotice
Included in:
Admin::HookLogsController, Projects::HookLogsController
Defined in:
app/controllers/concerns/web_hooks/hook_log_actions.rb

Instance Method Summary collapse

Instance Method Details

#retryObject



22
23
24
25
26
27
28
29
30
# File 'app/controllers/concerns/web_hooks/hook_log_actions.rb', line 22

def retry
  if hook_log.url_current?
    execute_hook
    redirect_to after_retry_redirect_path
  else
    flash[:warning] = _('The hook URL has changed, and this log entry cannot be retried')
    redirect_back(fallback_location: after_retry_redirect_path)
  end
end

#showObject



18
19
20
# File 'app/controllers/concerns/web_hooks/hook_log_actions.rb', line 18

def show
  hide_search_settings
end