Add json.has_attachments for the card

This commit is contained in:
Alp Keser
2026-01-30 13:28:26 +03:00
parent 231fa311c1
commit b4e1d74f5d
+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