debian-mirror-gitlab/app/controllers/projects/clusters/integrations_controller.rb

16 lines
414 B
Ruby
Raw Normal View History

2021-04-29 21:17:54 +05:30
# 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
2021-11-11 11:23:49 +05:30
@project ||= find_routable!(Project, File.join(params[:namespace_id], params[:project_id]), request.fullpath)
2021-04-29 21:17:54 +05:30
end
end