2018-10-31 20:39:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Projects::Clusters::ApplicationsController < Clusters::ApplicationsController
|
|
|
|
prepend_before_action :project
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def clusterable
|
|
|
|
@clusterable ||= ClusterablePresenter.fabricate(project, current_user: current_user)
|
|
|
|
end
|
|
|
|
|
|
|
|
def project
|
2019-05-13 04:50:23 -04:00
|
|
|
@project ||= find_routable!(Project, File.join(params[:namespace_id], params[:project_id]))
|
2018-10-31 20:39:01 -04:00
|
|
|
end
|
|
|
|
end
|