debian-mirror-gitlab/app/controllers/projects/clusters/integrations_controller.rb
2021-09-30 23:02:18 +05:30

15 lines
415 B
Ruby

# 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