2021-11-18 13:14:27 -05:00
|
|
|
# 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-09-05 02:12:53 -04:00
|
|
|
render_404 unless project.has_shimo? && project.shimo_integration&.render?
|
2021-11-18 13:14:27 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|