From 2705288ab0faf0128570eadcd04e257ea6e573ae Mon Sep 17 00:00:00 2001 From: Devin Breen Date: Fri, 15 Jan 2016 15:33:38 -0600 Subject: [PATCH] Fixing hacked strong params --- app/controllers/questions_controller.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index a020465..0abb8bc 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -6,10 +6,11 @@ class QuestionsController < ApplicationController # This is a hack to get around strong parameters. # These are the names of the parameter keys in the Race's jsonschema. + # todo: figure out how to calculate this dynamically. HACK_PARAMS = [ - :'racer-type', :'primary-inspiration', :'twitter', :'buddies', :'shower-song', :'private-comments', - :'agree-to-rules', :'agree-to-sabotage', :'agree-to-cart-deposit', :'agree-to-cart-food-poundage', - :'agree-not-a-donation', :'agree-to-orientation', :'party-bus-interest', :'party-bus-seats' + :'racer-type', :'primary-inspiration', :'secondary-inspiration', :'twitter', :'buddies', :'private-comments', :'explain-theme', + :'agree-to-core-philosophy', :'agree-to-rules', :'agree-to-sabotage', :'agree-to-cart-deposit', :'agree-to-cart-food-poundage', + :'agree-not-a-donation', :'agree-to-orientation', :'flame-effects', :'fundraising', :'party-bus-interest', :'party-bus-seats' ] def show