diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-27 14:58:04 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-27 14:58:04 -0400 |
commit | 529aaca59e68f5a4b431bcd08ebe7411c20f5d3d (patch) | |
tree | bd88e3b44d6a12da355bf32f1868d2436e03ce8e | |
parent | b9f2f8e71d9aec7a535778e6b1d3a6da4d5f517e (diff) |
Found where stages were being created twice. Fixed it.
-rw-r--r-- | app/controllers/tournaments_controller.rb | 6 |
1 files 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 |