Considering needs to include drafted cards or you'll never be able to see them

This commit is contained in:
Jason Zimdars
2025-04-11 12:08:05 -05:00
parent 76336a52d6
commit 5997ef2c70
+1 -1
View File
@@ -7,7 +7,7 @@ module Card::Engageable
has_one :engagement, dependent: :destroy, class_name: "Card::Engagement"
scope :doing, -> { published.active.joins(:engagement) }
scope :considering, -> { published.active.where.missing(:engagement) }
scope :considering, -> { published_or_drafted_by(Current.user).active.where.missing(:engagement) }
scope :stagnated, -> { doing.where(last_active_at: ..STAGNATED_AFTER.ago) }
end