From df98eeabe481228d8befaf137deca5def64fd3bc Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Tue, 29 May 2018 11:50:19 +0200 Subject: [PATCH] Add archived param to the json response --- app/serializers/group_child_entity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/group_child_entity.rb b/app/serializers/group_child_entity.rb index 15ec0f89bb2..ee150eefd9e 100644 --- a/app/serializers/group_child_entity.rb +++ b/app/serializers/group_child_entity.rb @@ -31,7 +31,7 @@ class GroupChildEntity < Grape::Entity end # Project only attributes - expose :star_count, + expose :star_count, :archived, if: lambda { |_instance, _options| project? } # Group only attributes