summaryrefslogtreecommitdiff
path: root/app/controllers/tournaments_controller.rb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-27 17:02:10 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-27 17:02:10 -0500
commitde40ec53e8b80d8d880214183f19ea93172a0026 (patch)
treecb25d099fa0252d2b43db850f21c69ccd03907e3 /app/controllers/tournaments_controller.rb
parent3a7b14f4a51c0fdb8b71720f361a0a8ccf080325 (diff)
give tournaments a game type
Diffstat (limited to 'app/controllers/tournaments_controller.rb')
-rw-r--r--app/controllers/tournaments_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index ea3857c..720305f 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -69,6 +69,6 @@ class TournamentsController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def tournament_params
- params[:tournament]
+ params.require(:tournament).permit(:game_id)
end
end