We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d981b3c commit ecf93d9Copy full SHA for ecf93d9
app/models/goal.rb
@@ -37,6 +37,7 @@ class Goal < ApplicationRecord
37
def self.leaderboard
38
self.all.set_public
39
.with_up_votes_count
40
+ .unscope(:order)
41
.order(up_votes_count: :desc).limit(10)
42
end
43
0 commit comments