Easier to see orders when aligned

This commit is contained in:
David Heinemeier Hansson
2025-10-30 14:45:01 +01:00
parent 5b70320a6b
commit c79d425e9d
+4 -4
View File
@@ -14,10 +14,10 @@ class Card < ApplicationRecord
before_save :set_default_title, if: :published?
after_update :handle_collection_change, if: :saved_change_to_collection_id?
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 :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