gitlab-org--gitlab-foss/app/controllers/projects/integrations/shimos_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
383 B
Ruby
Raw Normal View History

# 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 project.has_shimo? && project.shimo_integration&.render?
end
end
end
end