From e43fb6fc5a7544db177768234132cef29eba22d2 Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Fri, 7 Mar 2014 17:34:47 -0500 Subject: Made the tournaments defaults back to reasonable and permissions 'work' --- app/controllers/tournaments_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/tournaments_controller.rb') 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 -- cgit v1.2.3-2-g168b