summaryrefslogtreecommitdiff
path: root/app/controllers/groups/clusters/applications_controller.rb
blob: ce6fda4143cd71a56f71042308f098c71a70b45a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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], request.path_info)
  end
end