summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-24 17:10:42 -0400
committertkimia <tkimia@purdue.edu>2014-04-24 17:10:42 -0400
commit74814dad443659e1e0875329c95cc0257de25b3b (patch)
tree04e1e00daa8da22cfff84d264b1af2edd37ad2b4 /app/controllers
parentdd9a7a6b55fd3a6a494ba41fc133b1f1056c66a9 (diff)
parentcba88607fef562846958a0baeda420fa2d7529ed (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/tournaments_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index ebc54c1..1354ad6 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -116,8 +116,8 @@ class TournamentsController < ApplicationController
success = true
ActiveRecord::Base.transaction do
success &= @tournament.save &&
- success &= @tournament.tournament_stages.create(scheduling: "elimination")
- success &= @tournament.tournament_stages.first.create_matches
+ success &= @tournament.stages.create(scheduling: "elimination")
+ success &= @tournament.stages.first.create_matches
end
if success
format.html { redirect_to @tournament, notice: 'You have started this tournament.' }