Add has_attachments to notification card JSON

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Fernando Olivares
2026-01-22 03:00:17 -06:00
committed by Alp Keser
parent 683547e310
commit 009e431ad8
@@ -11,6 +11,7 @@ json.cache! notification do
json.card do
json.(notification.card, :id, :number, :title, :status)
json.board_name notification.card.board.name
json.has_attachments notification.card.has_attachments?
json.url card_url(notification.card)
json.column notification.card.column, partial: "columns/column", as: :column if notification.card.column
end