uses the hot_score in the welcome screen
This commit is contained in:
@@ -2,8 +2,8 @@ class WelcomeController < ApplicationController
|
|||||||
skip_authorization_check
|
skip_authorization_check
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@featured_debates = Debate.includes(:tags).limit(3)
|
@featured_debates = Debate.sort_by_hot_score.limit(3).for_render
|
||||||
set_debate_votes(@featured_debates)
|
set_debate_votes(@featured_debates)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user