diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-23 19:00:26 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-23 19:00:26 -0400 |
commit | de9b6eeaf0e963ab8cf52c60d9ec5528029d77c8 (patch) | |
tree | ee127646f48508d8dcc745dc2155cc5f31759543 /app | |
parent | 53c209dd99d4789da93a3423ba5f130c5eca1c5c (diff) |
Trivial tournament controller change.
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 03dc5b8..fde8980 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -146,7 +146,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, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams, :sampling_method) + permitted = [:game, :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] + params.require(:tournament).permit(permitted) end def is_owner?(object) |