diff options
Diffstat (limited to 'app/policies/clusters/agents')
-rw-r--r-- | app/policies/clusters/agents/activity_event_policy.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/policies/clusters/agents/activity_event_policy.rb b/app/policies/clusters/agents/activity_event_policy.rb new file mode 100644 index 00000000000..25fe1570b4b --- /dev/null +++ b/app/policies/clusters/agents/activity_event_policy.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Clusters + module Agents + class ActivityEventPolicy < BasePolicy + alias_method :event, :subject + + delegate { event.agent } + end + end +end |