From 6b2aca5d0eba38fff00d5922655c6d8cb9c2f7ea Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Sun, 27 Apr 2014 15:32:48 -0400 Subject: Save tournament after changing status. --- app/controllers/tournaments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') 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 -- cgit v1.2.3-2-g168b