Skip to content

Commit 7c76bdd

Browse files
author
David Heinemeier Hansson
committed
Drop Scorable concern
1 parent 1114679 commit 7c76bdd

File tree

3 files changed

+6
-83
lines changed

3 files changed

+6
-83
lines changed

app/models/card.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Card < ApplicationRecord
22
include Assignable, Colored, DraftCommenting, Engageable, Eventable, Golden,
3-
Messages, Notifiable, Pinnable, Closeable, Scorable, Searchable, Staged,
3+
Messages, Notifiable, Pinnable, Closeable, Searchable, Staged,
44
Statuses, Taggable, Watchable
55

66
belongs_to :collection, touch: true
@@ -21,12 +21,11 @@ class Card < ApplicationRecord
2121

2222
scope :indexed_by, ->(index) do
2323
case index
24-
when "most_active" then ordered_by_activity
25-
when "newest" then reverse_chronologically
26-
when "oldest" then chronologically
27-
when "latest" then latest
28-
when "stalled" then ordered_by_staleness
29-
when "closed" then closed
24+
when "newest" then reverse_chronologically
25+
when "oldest" then chronologically
26+
when "latest" then latest
27+
when "stalled" then chronologically
28+
when "closed" then closed
3029
end
3130
end
3231

app/models/card/scorable.rb

Lines changed: 0 additions & 64 deletions
This file was deleted.

test/models/card/scorable_test.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)