54e8ff0f21
- Add pages javascripts to intialize clusters for group pages - Move specs asserting gcp specific validations from controller into UpdateService spec - Also teach Clusters::ApplicationController about groups
18 lines
442 B
Ruby
18 lines
442 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Groups::Clusters::ApplicationsController < Clusters::ApplicationsController
|
|
include ControllerWithCrossProjectAccessCheck
|
|
|
|
prepend_before_action :group
|
|
requires_cross_project_access
|
|
|
|
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
|