gitlab-org--gitlab-foss/app/controllers/projects/alert_management_controller.rb

14 lines
292 B
Ruby

# frozen_string_literal: true
class Projects::AlertManagementController < Projects::ApplicationController
before_action :ensure_feature_enabled
def index
end
private
def ensure_feature_enabled
render_404 unless Feature.enabled?(:alert_management_minimal, project)
end
end