You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now it's a hack in app/controllers/questions_controller.rb:
# 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',:'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']
The text was updated successfully, but these errors were encountered:
ometa
changed the title
Programmatically calculate the params in the jsonform
Programmatically calculate the strong params in the jsonform
Dec 30, 2019
Right now it's a hack in
app/controllers/questions_controller.rb
:The text was updated successfully, but these errors were encountered: