phoenixframework/phoenix — pull request #319 by gjaldon (2014-09-06 14:59:30+00:00)
Title: [WIP] permit_params plug

@chrismccord were you thinking of something like this for https://github.com/phoenixframework/phoenix/issues/297? It's a simple plug that takes only whitelisted params.

If this is what you had in mind, below are some of the other stuff I was thinking of implementing:
- Raising an error if `:permit_params` isn't plugged so that devs will make sure to explicitly whitelist attributes
- Add a flag to toggle requiring of the permit_params plug.
- Store unfiltered params somewhere in conn

What do you think?