2018-10-22 23:51:29 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Groups::ClustersController < Clusters::ClustersController
|
|
|
|
include ControllerWithCrossProjectAccessCheck
|
|
|
|
|
|
|
|
prepend_before_action :group
|
|
|
|
requires_cross_project_access
|
|
|
|
|
|
|
|
layout 'group'
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def clusterable
|
|
|
|
@clusterable ||= ClusterablePresenter.fabricate(group, current_user: current_user)
|
|
|
|
end
|
|
|
|
|
|
|
|
def group
|
|
|
|
@group ||= find_routable!(Group, params[:group_id] || params[:id])
|
|
|
|
end
|
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
|
|
|
Groups::ClustersController.prepend_if_ee('EE::Groups::ClustersController')
|