Easier to see orders when aligned
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user