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

10 lines
159 B
Ruby
Raw Permalink Normal View History

2021-11-18 22:05:49 +05:30
# frozen_string_literal: true
module Clusters
class AgentTokenPolicy < BasePolicy
alias_method :token, :subject
delegate { token.agent }
end
end