debian-mirror-gitlab/app/policies/clusters/cluster_policy.rb

12 lines
227 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
module Clusters
class ClusterPolicy < BasePolicy
alias_method :cluster, :subject
2019-02-15 15:39:39 +05:30
delegate { cluster.group }
2018-03-17 18:26:18 +05:30
delegate { cluster.project }
2019-07-31 22:56:46 +05:30
delegate { cluster.instance }
2018-03-17 18:26:18 +05:30
end
end