From f12867a2acba1e8117e9be8d184a403aaa307f80 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Mon, 28 Oct 2019 10:02:06 +0800 Subject: [PATCH] competition: fix visit increment --- app/controllers/competitions/competitions_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/competitions/competitions_controller.rb b/app/controllers/competitions/competitions_controller.rb index 4e910ceae..27556175b 100644 --- a/app/controllers/competitions/competitions_controller.rb +++ b/app/controllers/competitions/competitions_controller.rb @@ -44,6 +44,8 @@ class Competitions::CompetitionsController < Competitions::BaseController @competition = current_competition @competition_modules = @competition.unhidden_competition_modules @user = current_user + + current_competition.increment!(:visits) end def informs