blob: e6e694783fa0d61805ff8d2b35eaf7856b0ff572 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
module Projects
module Harbor
class ApplicationController < Projects::ApplicationController
layout 'project'
before_action :harbor_registry_enabled!
before_action do
push_frontend_feature_flag(:harbor_registry_integration)
end
feature_category :integrations
private
def harbor_registry_enabled!
render_404 unless Feature.enabled?(:harbor_registry_integration)
end
end
end
end
|