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

16 lines
394 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2018-12-13 13:39:08 +05:30
class Projects::Clusters::ApplicationsController < Clusters::ApplicationsController
prepend_before_action :project
2018-03-17 18:26:18 +05:30
private
2018-12-13 13:39:08 +05:30
def clusterable
@clusterable ||= ClusterablePresenter.fabricate(project, current_user: current_user)
2018-03-17 18:26:18 +05:30
end
2018-11-08 19:23:39 +05:30
2018-12-13 13:39:08 +05:30
def project
2019-09-04 21:01:54 +05:30
@project ||= find_routable!(Project, File.join(params[:namespace_id], params[:project_id]))
2018-11-08 19:23:39 +05:30
end
2018-03-17 18:26:18 +05:30
end