Merge pull request #2455 from basecamp/expose-has-attachment-for-card

Add json.has_attachments for the card
This commit is contained in:
Alp Keser
2026-02-10 11:36:30 +03:00
committed by GitHub
+1
View File
@@ -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