Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shimos_controller.rb « integrations « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 827dbb8f3f9ea926f98abb68f3179f7d5ad17b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Projects
  module Integrations
    class ShimosController < Projects::ApplicationController
      feature_category :integrations

      before_action :ensure_renderable

      def show; end

      private

      def ensure_renderable
        render_404 unless Feature.enabled?(:shimo_integration, project) && project.has_shimo? && project.shimo_integration&.render?
      end
    end
  end
end