From b4e1d74f5d07161c8538fef167848c793d3fcb17 Mon Sep 17 00:00:00 2001 From: Alp Keser Date: Fri, 30 Jan 2026 13:28:26 +0300 Subject: [PATCH] Add json.has_attachments for the card --- app/views/cards/_card.json.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/cards/_card.json.jbuilder b/app/views/cards/_card.json.jbuilder index 0ceb7e339..f8e727732 100644 --- a/app/views/cards/_card.json.jbuilder +++ b/app/views/cards/_card.json.jbuilder @@ -3,6 +3,7 @@ json.cache! card do json.description card.description.to_plain_text json.description_html card.description.to_s json.image_url card.image.presence && url_for(card.image) + json.has_attachments card.has_attachments? json.tags card.tags.pluck(:title).sort