summaryrefslogtreecommitdiff
path: root/app/presenters/project_clusterable_presenter.rb
blob: f986b5584a350a91c067665b5993321aaa9dfd37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class ProjectClusterablePresenter < ClusterablePresenter
  def index_path
    project_clusters_path(clusterable)
  end

  def new_path
    new_project_cluster_path(clusterable)
  end

  def clusterable_params
    { project_id: clusterable.to_param, namespace_id: clusterable.namespace.to_param }
  end
end