rails/rails — pull request #12682 by garysweaver (2013-10-28 21:49:10+00:00)
Title: make always permitted parameters configurable

originally submitted via https://github.com/rails/strong_parameters/pull/174

Was getting errors related to 'format' not being allowed as a param. Having to permit 'format' everywhere is messy, but I wasn't sure about changing S.P. to always allow format for everyone, since it is a client-supplied param and there may be some valid reason to allow control over permittance of 'format' rather than always permitting it. It seemed that just allowing NEVER_UNPERMITTED_PARAMS to be modifiable would be the best idea, so I converted it into a configuration option, using fewer double negatives ("always_permitted_parameters"). Not sure if that works for everyone or not, so this is really just a conversation starter.