debian-mirror-gitlab/app/controllers/projects/integrations/shimos_controller.rb

20 lines
383 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# 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
2022-10-11 01:57:18 +05:30
render_404 unless project.has_shimo? && project.shimo_integration&.render?
2022-01-26 12:08:38 +05:30
end
end
end
end