Filter draft cards from public closed column (#2667)

The public closed column was showing draft cards because it queried
`@board.cards.closed` without a `.published` filter. This adds the
missing `.published` scope to match the pattern used elsewhere in the
public controllers.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mike Dalessio
2026-03-05 20:31:41 -05:00
committed by GitHub
parent 8ee2d7d65f
commit e27c0c5fa1
4 changed files with 22 additions and 2 deletions
@@ -1,5 +1,5 @@
class Public::Boards::Columns::ClosedsController < Public::BaseController
def show
set_page_and_extract_portion_from @board.cards.closed.recently_closed_first
set_page_and_extract_portion_from @board.cards.closed.published.recently_closed_first
end
end