From 529aaca59e68f5a4b431bcd08ebe7411c20f5d3d Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Sun, 27 Apr 2014 14:58:04 -0400 Subject: Found where stages were being created twice. Fixed it. --- app/controllers/tournaments_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 8752298..2851947 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -132,9 +132,9 @@ class TournamentsController < ApplicationController @tournament.status = 1 success = true ActiveRecord::Base.transaction do - success &= @tournament.save && - sched = tournament_attribute_params[:type_opt] - success &= @tournament.stages.create(scheduling: sched) + # success &= @tournament.save && + # sched = tournament_attribute_params[:type_opt] + # success &= @tournament.stages.create(scheduling_method: sched) success &= @tournament.stages.first.create_matches end if success -- cgit v1.2.3-54-g00ecf