ianwhite / resources_controller

resources_controller rails plugin: rc makes RESTful controllers fun
MIT License
79 stars 21 forks source link

Better interaction with strong parameters #15

Open rst opened 7 years ago

rst commented 7 years ago

This pull request deals with #14 by eliminating the default behavior of synthesizing a whitelist (which likely includes attributes that a client isn't meant to be able to set directly, including foreign keys and sensitive stuff like is_admin on a User object). It also updates the docs to describe usage with strong parameters (in Rails 4+, or Rails 3 with the strong_parameters gem.

See discussion on the ticket for more particulars...