Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatically calculate the strong params in the jsonform #40

Open
ometa opened this issue Jan 15, 2016 · 0 comments
Open

Programmatically calculate the strong params in the jsonform #40

ometa opened this issue Jan 15, 2016 · 0 comments

Comments

@ometa
Copy link
Member

ometa commented Jan 15, 2016

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'
  ]
@ometa ometa changed the title Programmatically calculate the params in the jsonform Programmatically calculate the strong params in the jsonform Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant