summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-03-07 17:34:47 -0500
committerAndrewMurrell <amurrel@purdue.edu>2014-03-07 17:34:47 -0500
commite43fb6fc5a7544db177768234132cef29eba22d2 (patch)
treeb3d67b66dd4c21d2ee1b8f4874f6e7a217fd3105 /app/controllers
parent5f7189c2fe6f39b2056d5f3a6d91e557306697da (diff)
Made the tournaments defaults back to reasonable and permissions 'work'
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/tournaments_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 0807953..d2a2d18 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -22,7 +22,8 @@ class TournamentsController < ApplicationController
def new
@games = Game.all
@tournament = Tournament.new(game: Game.find_by_id(params[:game]))
- @tournament.status = 1
+ @tournament.status = 0
+ @tournament.save
end
# GET /tournaments/1/edit