|
|
@ -31,7 +31,7 @@ class Competitions::CompetitionsController < Competitions::BaseController
|
|
|
|
def show
|
|
|
|
def show
|
|
|
|
@competition = current_competition
|
|
|
|
@competition = current_competition
|
|
|
|
|
|
|
|
|
|
|
|
current_competition.increment(:visits)
|
|
|
|
current_competition.increment!(:visits)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def update
|
|
|
|
def update
|
|
|
@ -44,6 +44,8 @@ class Competitions::CompetitionsController < Competitions::BaseController
|
|
|
|
@competition = current_competition
|
|
|
|
@competition = current_competition
|
|
|
|
@competition_modules = @competition.unhidden_competition_modules
|
|
|
|
@competition_modules = @competition.unhidden_competition_modules
|
|
|
|
@user = current_user
|
|
|
|
@user = current_user
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
current_competition.increment!(:visits)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def informs
|
|
|
|
def informs
|
|
|
|