summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-28 22:01:14 -0400
committertkimia <tkimia@purdue.edu>2014-04-28 22:01:14 -0400
commitdd4c9e16c529bdbf0d055b279ed2dadc0c2aae13 (patch)
treeb0c9377df1f11ae626e5bd7057de158301884e0d /app/controllers/matches_controller.rb
parentbc8be5e217279012cd4dc62e3fc2fe2bd9308b1c (diff)
parentd52ceaf8d2b823b68edcf3614999b8639a0971f9 (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/controllers/matches_controller.rb')
-rw-r--r--app/controllers/matches_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
index 81ffcd8..d2dc918 100644
--- a/app/controllers/matches_controller.rb
+++ b/app/controllers/matches_controller.rb
@@ -31,6 +31,7 @@ class MatchesController < ApplicationController
# Scheduled, waiting to start
if (@tournament.hosts.include? current_user) and (params[:update_action] == "start")
@match.status = 2
+ @match.start_sampling
respond_to do |format|
if @match.save
format.html { redirect_to tournament_match_path(@tournament, @match), notice: 'Match has started.' }