Welcome to mirror list, hosted at ThFree Co, Russian Federation.

integrations_controller.rb « clusters « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eed6c1dccc4747b2f5be0701b38775f67e4d8f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class Projects::Clusters::IntegrationsController < ::Clusters::IntegrationsController
  prepend_before_action :project

  private

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

  def project
    @project ||= find_routable!(Project, File.join(params[:namespace_id], params[:project_id]), request.path_info)
  end
end