summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-27 15:32:48 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-27 15:32:48 -0400
commit6b2aca5d0eba38fff00d5922655c6d8cb9c2f7ea (patch)
treebc22b426b88e2dbfb141ff5a6ed90772a870288a
parent529aaca59e68f5a4b431bcd08ebe7411c20f5d3d (diff)
Save tournament after changing status.
-rw-r--r--app/controllers/tournaments_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 2851947..9c8ad7a 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -130,9 +130,9 @@ class TournamentsController < ApplicationController
respond_to do |format|
if @tournament.status == 0
@tournament.status = 1
+ @tournament.save
success = true
ActiveRecord::Base.transaction do
- # success &= @tournament.save &&
# sched = tournament_attribute_params[:type_opt]
# success &= @tournament.stages.create(scheduling_method: sched)
success &= @tournament.stages.first.create_matches