Activity bumps cards to the top of the stream

This commit is contained in:
Jason Zimdars
2025-10-13 15:39:14 -05:00
parent ad3a16f8e6
commit fb865effac
5 changed files with 5 additions and 4 deletions
+1
View File
@@ -17,6 +17,7 @@ class Card < ApplicationRecord
scope :reverse_chronologically, -> { order created_at: :desc, id: :desc }
scope :chronologically, -> { order created_at: :asc, id: :asc }
scope :latest, -> { order updated_at: :desc, id: :desc }
scope :by_last_activity, -> { order last_active_at: :desc, id: :desc }
scope :indexed_by, ->(index) do
case index