summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/status_action_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/ci/status_action_type.rb')
-rw-r--r--app/graphql/types/ci/status_action_type.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/graphql/types/ci/status_action_type.rb b/app/graphql/types/ci/status_action_type.rb
index 26ca3c1438a..c0f61cf49f2 100644
--- a/app/graphql/types/ci/status_action_type.rb
+++ b/app/graphql/types/ci/status_action_type.rb
@@ -21,7 +21,8 @@ module Types
description: 'Title for the action, for example: Retry.'
def id(parent:)
- "#{parent.parent.object.object.class.name}-#{parent.object.object.id}"
+ # parent is a SimpleDelegator
+ "#{parent.subject.class.name}-#{parent.id}"
end
def action_method