2018-07-24 10:00:56 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-10-23 08:36:35 +00:00
|
|
|
module Clusters
|
2017-10-03 14:44:06 +00:00
|
|
|
class ClusterPolicy < BasePolicy
|
|
|
|
alias_method :cluster, :subject
|
|
|
|
|
2018-10-15 00:42:02 +00:00
|
|
|
delegate { cluster.group }
|
2017-10-23 08:36:35 +00:00
|
|
|
delegate { cluster.project }
|
2019-04-10 02:13:43 +00:00
|
|
|
delegate { cluster.instance }
|
2017-10-03 14:44:06 +00:00
|
|
|
end
|
|
|
|
end
|