forked from Trustie/forgeplus
fixed 竞赛首页推荐控制
This commit is contained in:
parent
97c1da579e
commit
2080d44bdb
|
|
@ -1,6 +1,6 @@
|
|||
class Home::CompetitionsController < ApplicationController
|
||||
|
||||
def index
|
||||
@competitions = Competition.active.order(start_time: :desc).limit(3)
|
||||
@competitions = Competition.active.where(show_index: true).order(start_time: :desc).limit(3)
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue