diff options
Diffstat (limited to 'app/serializers/group_child_entity.rb')
-rw-r--r-- | app/serializers/group_child_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/group_child_entity.rb b/app/serializers/group_child_entity.rb index a7fe4d3f9b9..adbda790dee 100644 --- a/app/serializers/group_child_entity.rb +++ b/app/serializers/group_child_entity.rb @@ -20,7 +20,7 @@ class GroupChildEntity < Grape::Entity # We know `type` will be one either `project` or `group`. # The `edit_polymorphic_path` helper would try to call the path helper # with a plural: `edit_groups_path(instance)` or `edit_projects_path(instance)` - # while our methods are `edit_group_path` or `edit_group_path` + # while our methods are `edit_group_path` or `edit_project_path` public_send("edit_#{type}_path", instance) # rubocop:disable GitlabSecurity/PublicSend end |