diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-03-25 16:38:52 -0400 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-03-25 16:38:52 -0400 |
commit | 8435c0a5ec9889a9da6ede2e24c044d64b279095 (patch) | |
tree | d277b31519df83e8a1c060b04c6ea6cf50b5c361 /app/controllers | |
parent | 4d58cc07933fd0a0756c667b38f2e0658302aebf (diff) | |
parent | 4e754e04d6bd04267e5a55011aa9f4f2a2fc7859 (diff) |
Tournament Name added
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 7352e8d..8d90758 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -124,6 +124,8 @@ class TournamentsController < ApplicationController # Never trust parameters from the scary internet, only allow the white list through. def tournament_params - params.require(:tournament).permit(:game, :game_id, :status, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams) + + params.require(:tournament).permit(:game, :name, :game_id, :status, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams) + end end |