summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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