diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 13:10:42 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 13:14:11 -0400 |
commit | a7a68011785381c3680d81e0eaf29964f0007fe1 (patch) | |
tree | e038bfe70f1ff3382b1bb7c6a757db1362fbeb3a /app/controllers | |
parent | 347e339f7c8327b37d8a416073dc12fc3a78c895 (diff) |
touch up the tournaments form
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 5eba07c..e115f18 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -171,6 +171,7 @@ class TournamentsController < ApplicationController # Never trust parameters from the scary internet, only allow the white list through. def tournament_attribute_params + params[:num_stages] ||= 1 if params[:tournament] p = params.require(:tournament).permit(:game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams, :sampling_method, :scoring_method) if p[:game_id] |