debian-mirror-gitlab/app/controllers/projects/hook_logs_controller.rb
2022-10-11 01:57:18 +05:30

19 lines
374 B
Ruby

# frozen_string_literal: true
class Projects::HookLogsController < Projects::ApplicationController
before_action :authorize_admin_project!
include WebHooks::HookLogActions
layout 'project_settings'
private
def hook
@hook ||= @project.hooks.find(params[:hook_id])
end
def after_retry_redirect_path
edit_project_hook_path(@project, hook)
end
end