Remove anemic scope

This commit is contained in:
David Heinemeier Hansson
2025-04-18 17:18:13 +02:00
parent f368b9f9c9
commit cacee0febb
3 changed files with 3 additions and 4 deletions
-1
View File
@@ -17,7 +17,6 @@ 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 :in_collection, ->(collection) { where collection: collection }
scope :indexed_by, ->(index) do
case index