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