summaryrefslogtreecommitdiff
path: root/app/controllers/groups/clusters/integrations_controller.rb
blob: 61b308f7d1b73aeaeb15bba875242352889864ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class Groups::Clusters::IntegrationsController < Clusters::IntegrationsController
  include ControllerWithCrossProjectAccessCheck

  prepend_before_action :group
  requires_cross_project_access

  private

  def clusterable
    @clusterable ||= ClusterablePresenter.fabricate(group, current_user: current_user)
  end

  def group
    @group ||= find_routable!(Group, params[:group_id] || params[:id], request.path_info)
  end
end