summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-28 21:32:04 -0400
committernfoy <nfoy@purdue.edu>2014-04-28 21:32:04 -0400
commit819fd70c1285bf5670b68842adad8c77c36d1076 (patch)
tree121c3161a25d3f726d6b6ccadd95e7815454a812 /app/controllers/matches_controller.rb
parentfeffb3b186ad2b73bd9868a1eb24ab20f9c71507 (diff)
All the changes. Luke should know what's up.
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.' }